![]() |
Peano
|
#include "tarch/la/Matrix.h"
#include "tarch/la/Vector.h"
#include <sstream>
#include <cmath>
#include "tarch/la/MatrixOperations.cpph"
Go to the source code of this file.
Namespaces | |
namespace | tarch |
Have to include this header, as I need access to the SYCL_EXTERNAL keyword. | |
namespace | tarch::la |
My collection of tiny vector operations. | |
Functions | |
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) |
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) |
std::ostream & operator<< | ( | std::ostream & | os, |
const tarch::la::Matrix< Rows, Cols, Scalar > & | matrix ) |
Definition at line 114 of file MatrixOperations.cpph.
References tarch::la::Matrix< Rows, Cols, Scalar >::toString().