Operators now mix storage_order and returns properly sized results

See merge request oss/rotgen!30
This commit is contained in:
Joel Falcou 2025-09-28 21:50:05 +02:00
parent b61c91736f
commit 43d09f06fb
18 changed files with 237 additions and 88 deletions

View file

@ -82,10 +82,10 @@ CLASSNAME CLASSNAME::normalized() const
return result;
}
CLASSNAME CLASSNAME::transpose() const
TRANSCLASSNAME CLASSNAME::transpose() const
{
CLASSNAME result(*this);
result.storage_->data.transposeInPlace();
TRANSCLASSNAME result;
result.storage()->data = storage_->data.transpose();
return result;
}
@ -96,10 +96,10 @@ CLASSNAME CLASSNAME::conjugate() const
return result;
}
CLASSNAME CLASSNAME::adjoint() const
TRANSCLASSNAME CLASSNAME::adjoint() const
{
CLASSNAME result(*this);
result.storage_->data.adjointInPlace();
TRANSCLASSNAME result;
result.storage()->data = storage_->data.adjoint();
return result;
}