operator+=

void operator+=(StaticRowView const &that)

Sums a row view with another row view in-place. Redefines this to be the sum of *this and that.

Parameters:

that – the row view to add to this.

Returns:

(None)

Throws:

If the implementation of the semiring addition throws.

Complexity:

\(O(m)\) where \(m\) is size()

Warning

The two row views must be of the same size, although this is not verified by the implementation.

void operator+=(scalar_type const a)

Adds a scalar to every entry of the row in-place.

Parameters:

a – the scalar to add to this.

Returns:

(None)

Complexity:

\(O(m)\) where \(m\) is size()

Throws:

If the implementation of the semiring addition throws.