Element-wise arithmetic operators which modify the Block. The
sizes of the two blocks must be equal.
Blockoperator+(const Block& aBlock) const;
Adds two blocks together element by element and returns a newly created
block. The size of the two blocks being added must be equal.
Blockoperator+(type aNumber) const;
Adds a constant value to every element in a block and returns
a newly created block with the results.
Blockoperator-(const Block& aBlock) const;
Subtracts two blocks from each other element by element and
returns a newly created block with the result of the addition. The
size of the two blocks being added must be equal.
Blockoperator-(void) const;
The unary - operator. Equivalent to multiplying each element by
-1.
Blockoperator-(type aNumber) const;
Subtracts a constant value from every element in a block and returns
a newly created block with the result of the subtraction.
Blockoperator*(const Block& aBlock) const;
Multiplies two blocks together element by element and returns a
newly created block. The sizes of the two blocks being multiplied
must be equal.
Blockoperator*(type aNumber) const;
Multiplies a constant value to every element in a block and returns
a newly created block with the results.
Blockoperator*(const Block& aBlock) const;
Divides two blocks element by element and returns a newly created
block. The sizes of the two blocks must be equal.
void zero(int minIndex = -1, int maxIndex = -1);
Zeros the specified range of values in the Block. Error if any index
is out of range. Use minIndex = -1 if you want the zeroing to start
at the beginning of the Block (or 0, of course). Use maxIndex = -1
if you want to zero to the end of the Block (or use getSize() - 1 ).