[ARITHMETIC][REDUCTION OPERATIONS] implemented and added tests for all reduction operations

This commit is contained in:
kallore 2025-05-20 11:49:03 +02:00
parent 9fc9b94be7
commit a0a5a197e8
3 changed files with 80 additions and 0 deletions

View file

@ -43,6 +43,15 @@ namespace rotgen
void transposeInPlace();
void adjointInPlace();
double sum() const;
double prod() const;
double mean() const;
double maxCoeff() const;
double maxCoeff(std::ptrdiff_t* row, std::ptrdiff_t* col) const;
double minCoeff() const;
double minCoeff(std::ptrdiff_t* row, std::ptrdiff_t* col) const;
double trace() const;
double& operator()(std::size_t i, std::size_t j);
double const& operator()(std::size_t i, std::size_t j) const;