Implements reductions visitors broadcasting
Co-authored-by: kallore <kkaspar@codereckons.com> See merge request oss/rotgen!6
This commit is contained in:
parent
9164c02c47
commit
d5146ee19f
4 changed files with 86 additions and 0 deletions
|
|
@ -122,6 +122,18 @@ namespace rotgen
|
|||
|
||||
double matrix_impl64::trace() const { return storage_->data.trace(); }
|
||||
|
||||
double matrix_impl64::squaredNorm() const { return storage_->data.squaredNorm(); }
|
||||
double matrix_impl64::norm() const { return storage_->data.norm(); }
|
||||
|
||||
double matrix_impl64::lpNorm(int p) const {
|
||||
if (p == 1)
|
||||
return storage_->data.lpNorm<1>();
|
||||
else if (p == 2)
|
||||
return storage_->data.lpNorm<2>();
|
||||
else
|
||||
return storage_->data.lpNorm<Eigen::Infinity>();
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
// Operators
|
||||
//==================================================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue