[ARITHMETIC][REDUCTION OPERATIONS] implemented and added tests for all reduction operations
This commit is contained in:
parent
9fc9b94be7
commit
a0a5a197e8
3 changed files with 80 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue