Template Function Jet::Utilities::DiagExp¶
Defined in File Utilities.hpp
Function Documentation¶
-
template<typename
scalar_type_t
>
inline std::vector<std::complex<scalar_type_t>>Jet::Utilities
::
DiagExp
(const std::vector<std::complex<scalar_type_t>> &mat)¶ Returns a diagonal matrix with the same dimensions of the given matrix where each entry along the main diagonal is derived by applying std::exp() to the corresponding entry in the given matrix.
- Template Parameters
scalar_type_t – Template parameter of std::complex.
- Parameters
mat – Matrix to be converted into a diagonal matrix.
- Returns
Matrix representing the diagonal exponentation of the given matrix.
api/function_Utilities_8hpp_1ad523eb45b02772fcfc83e0eb0a85dacc
Download Python script
Download Notebook
View on GitHub