|
| template<int Rows, int Cols, typename Scalar > |
| Scalar | tarch::la::sum (const Matrix< Rows, Cols, Scalar > &matrix) |
| | Computes the sum of all entries of the matrix.
|
| |
| template<int Rows, int Cols, typename Scalar > |
| Matrix< Cols, Rows, Scalar > | tarch::la::transpose (const Matrix< Rows, Cols, Scalar > &matrix) |
| |
| template<int Rows, typename Scalar > |
| static Matrix< Rows, Rows, Scalar > | tarch::la::identity () |
| | Returns the identity matrix.
|
| |
| template<int Rows, typename Scalar > |
| Vector< Rows, Scalar > | tarch::la::diag (const Matrix< Rows, Rows, Scalar > &matrix) |
| | Extract diagonal vector from matrix.
|
| |
| template<int Rows, int Cols, typename Scalar > |
| Vector< Cols, Scalar > | tarch::la::row (const Matrix< Rows, Cols, Scalar > &matrix, int whichRow) |
| | Extract row from matrix.
|
| |
| template<int Rows, int Cols, typename Scalar > |
| Vector< Rows, Scalar > | tarch::la::col (const Matrix< Rows, Cols, Scalar > &matrix, int whichColumn) |
| | Extract row from matrix.
|
| |
| template<int Rows, int Cols, typename Scalar > |
| Matrix< Rows, Cols, Scalar > | tarch::la::invertEntries (const Matrix< Rows, Cols, Scalar > &matrix) |
| | Inverts each individual entry.
|
| |
| template<int Rows, int Cols, typename Scalar > |
| Scalar | tarch::la::frobeniusNorm (const Matrix< Rows, Cols, Scalar > &matrix) |
| |
| template<int Rows, int Cols, typename Scalar > |
| Scalar | tarch::la::elementMax (const Matrix< Rows, Cols, Scalar > &matrix) |
| | Max norm.
|
| |
| template<int Rows, int Cols, typename Scalar > |
| std::ostream & | operator<< (std::ostream &os, const tarch::la::Matrix< Rows, Cols, Scalar > &matrix) |
| |