sum of all matrix elements

This commit is contained in:
2025-01-31 16:51:49 +01:00
parent 0c998b0b52
commit ecdd2fefa5
2 changed files with 56 additions and 0 deletions

2
mat.h
View File

@@ -257,6 +257,8 @@ public:
const NRVec<T> rsum() const;
//! sum numbers in the columns (sum over row index)
const NRVec<T> csum() const;
//! sum all matrix elements
const T sum() const;
//! orthonormalize this matrix
void orthonormalize(const bool rowcol, const NRSMat<T> *metric = NULL);