[ARITHMETIC OPERATORS][IMPLEMENTATION] implmeented the binary, unary and compound - operator
This commit is contained in:
parent
ec63380746
commit
12b867e1c9
3 changed files with 33 additions and 0 deletions
|
|
@ -95,6 +95,19 @@ namespace rotgen
|
|||
return *this;
|
||||
}
|
||||
|
||||
matrix_impl64& matrix_impl64::operator-=(matrix_impl64 const& rhs)
|
||||
{
|
||||
storage_->data -= rhs.storage_->data;
|
||||
return *this;
|
||||
}
|
||||
|
||||
matrix_impl64& matrix_impl64::operator-()
|
||||
{
|
||||
matrix_impl64 result(*this);
|
||||
result.storage_->data = -result.storage_->data;
|
||||
return result;
|
||||
}
|
||||
|
||||
matrix_impl64& matrix_impl64::operator*=(matrix_impl64 const& rhs)
|
||||
{
|
||||
storage_->data *= rhs.storage_->data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue