[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
|
|
@ -101,11 +101,24 @@ namespace rotgen
|
|||
{
|
||||
storage_->data.transposeInPlace();
|
||||
}
|
||||
|
||||
void matrix_impl64::adjointInPlace()
|
||||
{
|
||||
storage_->data.adjointInPlace();
|
||||
}
|
||||
|
||||
double matrix_impl64::sum() const { return storage_->data.sum(); }
|
||||
double matrix_impl64::prod() const { return storage_->data.prod(); }
|
||||
double matrix_impl64::mean() const { return storage_->data.mean(); }
|
||||
|
||||
double matrix_impl64::minCoeff() const { return storage_->data.minCoeff(); }
|
||||
double matrix_impl64::minCoeff(std::ptrdiff_t* row, std::ptrdiff_t* col) const { return storage_->data.minCoeff(row, col); }
|
||||
|
||||
double matrix_impl64::maxCoeff() const { return storage_->data.maxCoeff(); }
|
||||
double matrix_impl64::maxCoeff(std::ptrdiff_t* row, std::ptrdiff_t* col) const { return storage_->data.maxCoeff(row, col); }
|
||||
|
||||
double matrix_impl64::trace() const { return storage_->data.trace(); }
|
||||
|
||||
//==================================================================================================
|
||||
// Operators
|
||||
//==================================================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue