Function Dune::XT::Common::imag¶
-
template<class K, int ROWS, int COLS>
int Dune::XT::Common::imag(const Dune::FieldMatrix<K, ROWS, COLS> &complex_mat)¶ Returns the entrywise imaginary part of a complex-valued matrix.
-
template<class K, int ROWS, int COLS>
int Dune::XT::Common::imag(const FieldMatrix<K, ROWS, COLS> &complex_mat)¶ Returns the entrywise imaginary part of a complex-valued matrix.
-
template<class K, int ROWS, int COLS>
typename std::enable_if<is_arithmetic<K>::value && !is_complex<K>::value, FieldMatrix<K, ROWS, COLS>>::type Dune::XT::Common::imag(const Dune::FieldMatrix<K, ROWS, COLS>&)¶ Returns the imaginary part of a real-valued matrix, i.e. an all-zero matrix.
-
template<class K, int ROWS, int COLS>
typename std::enable_if<is_arithmetic<K>::value && !is_complex<K>::value, FieldMatrix<K, ROWS, COLS>>::type Dune::XT::Common::imag(const FieldMatrix<K, ROWS, COLS>&)¶ Returns the imaginary part of a real-valued matrix, i.e. an all-zero matrix.