17 template<
int Rows,
int Cols,
typename Scalar>
18 Scalar
sum (
const Matrix<Rows,Cols,Scalar>& matrix);
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>
std::ostream & operator<<(std::ostream &os, const tarch::la::Matrix< Rows, Cols, Scalar > &matrix)
DynamicMatrix transpose(const DynamicMatrix &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.
Vector< Rows, Scalar > diag(const Matrix< Rows, Rows, Scalar > &matrix)
Extract diagonal vector from matrix.
static Matrix< Rows, Rows, Scalar > identity()
Returns the identity matrix.
Vector< Size, Scalar > invertEntries(const Vector< Size, Scalar > &vector)
Vector< Cols, Scalar > row(const Matrix< Rows, Cols, Scalar > &matrix, int whichRow)
Extract row from matrix.
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.