[ARITHMETIC OP][IMPLEMENTATION] rectifie dthe implementation of the unary - operator

This commit is contained in:
kallore 2025-05-19 16:59:10 +02:00
parent ee3197a0a6
commit 721550d0f8
3 changed files with 6 additions and 5 deletions

View file

@ -101,8 +101,7 @@ namespace rotgen
return *this;
}
matrix_impl64& matrix_impl64::operator-()
{
matrix_impl64 matrix_impl64::operator-() const {
matrix_impl64 result(*this);
result.storage_->data = -result.storage_->data;
return result;