operator*¶
-
Row operator*(scalar_type const a) const¶
Multiplies every entry of the row by a scalar.
- Parameters:
a – the scalar.
- Returns:
A value of type Row containing the original row multiplied by the scalar
a.- Complexity:
\(O(m)\) where \(m\) is
size()- Throws:
If the implementation of the semiring addition throws or
std::bad_allocis thrown.