FreePOOMA  2.4.1
Classes
BinaryVectorOp.h File Reference

An engine class for representing the sum, product etc between two vectors. More...

This graph shows which files directly or indirectly include this file:

Classes

class  VectorEngine< D, T, BinaryVectorOp< V1, V2, Op > >
struct  VectorEngineElem< D, T, BinaryVectorOp< V1, V2, Op >, I >
 Specialization of VectorElem for BinaryVectorOp. More...

Detailed Description

An engine class for representing the sum, product etc between two vectors.

This is used as part of evaluating expressions.

This specialization of VectorEngine implements an optimization for expression evaluation. Binary operations are done by constructing a Vector with a BinaryVectorOp 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.