Function Dune::XT::Common::real

template<class K, int ROWS, int COLS>
int Dune::XT::Common::real(const Dune::FieldMatrix<K, ROWS, COLS> &complex_mat)

Returns the entrywise real part of a complex-valued matrix.

template<class K, int ROWS, int COLS>
int Dune::XT::Common::real(const FieldMatrix<K, ROWS, COLS> &complex_mat)

Returns the entrywise real 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::real(Dune::FieldMatrix<K, ROWS, COLS> &&real_mat)

Returns the real part of a real-valued matrix, i.e. the matrix itself (rvalue overload).

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::real(FieldMatrix<K, ROWS, COLS> &&real_mat)

Returns the real part of a real-valued matrix, i.e. the matrix itself (rvalue overload).

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::real(const Dune::FieldMatrix<K, ROWS, COLS> &real_mat)

Returns the real part of a real-valued matrix, i.e. the matrix itself.

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::real(const FieldMatrix<K, ROWS, COLS> &real_mat)

Returns the real part of a real-valued matrix, i.e. the matrix itself.