17 template<
int Rows,
int Cols,
typename Scalar>
21 template<
int Rows,
int Cols,
typename Scalar>
27 template<
int Rows,
typename Scalar>
33 template<
int Rows,
typename Scalar>
39 template<
int Rows,
int Cols,
typename Scalar>
45 template<
int Rows,
int Cols,
typename Scalar>
61 template<
int Rows,
int Cols,
typename Scalar>
66 template<
int Rows,
int Cols,
typename Scalar>
74 template<
int Rows,
int Cols,
typename Scalar>
83template<
int Rows,
int Cols,
typename Scalar>
87#include "tarch/la/MatrixOperations.cpph"
std::ostream & operator<<(std::ostream &os, const tarch::la::Matrix< Rows, Cols, Scalar > &matrix)
Scalar sum(const Matrix< Rows, Cols, Scalar > &matrix)
Computes the sum of all entries of the matrix.
Vector< Rows, Scalar > col(const Matrix< Rows, Cols, Scalar > &matrix, int whichColumn)
Extract row from matrix.
Scalar elementMax(const Matrix< Rows, Cols, Scalar > &matrix)
Max norm.
Vector< Rows, Scalar > diag(const Matrix< Rows, Rows, Scalar > &matrix)
Extract diagonal vector from matrix.
Matrix< Rows, Cols, Scalar > invertEntries(const Matrix< Rows, Cols, Scalar > &matrix)
Inverts each individual entry.
DynamicMatrix transpose(const DynamicMatrix &matrix)
static Matrix< Rows, Rows, Scalar > identity()
Returns the identity matrix.
Vector< Cols, Scalar > row(const Matrix< Rows, Cols, Scalar > &matrix, int whichRow)
Extract row from matrix.
Scalar frobeniusNorm(const Matrix< Rows, Cols, Scalar > &matrix)
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.