[ARITHMETIC OP][IMPLEMENTATION] rectifie dthe implementation of the unary - operator
This commit is contained in:
parent
ee3197a0a6
commit
721550d0f8
3 changed files with 6 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue