FreePOOMA
2.4.1
|
An engine class for representing the sum, product, etc. More...
Classes | |
class | TinyMatrixEngine< D1, D2, T, BinaryTinyMatrixOp< V1, V2, Op > > |
Specialization of TinyMatrixEngine for BinaryTinyMatrixOp. More... | |
struct | TinyMatrixEngineElem< D1, D2, T, BinaryTinyMatrixOp< V1, V2, Op >, I, J > |
Specialization of TinyMatrixElem for BinaryTinyMatrixOp. More... |
An engine class for representing the sum, product, etc.
between two TinyMatrixs. This is used as part of evaluating expressions.
This specialization of TinyMatrixEngine implements an optimization for expression evaluation. Binary operations are done by constructing TinyMatrix with a BinaryTinyMatrixOp engine tag, then the result of the operation is constructed by "copying out of" that one. Copying each element out of one of these causes the binary expression to be evaluated for that point.
This strategy reduces the number of copies that get made duing expression evaluations.