This is the Tiny Vector Matrix Expression Templates library found at http://tvmet.sourceforge.net. It is the fastest and most compact matrix lib out there (for < 10x10 matricies). I have done some minor tweaks to make it compile for mbed. For examples and hints on how to use, see: http://tvmet.sourceforge.net/usage.html
Dependents: Eurobot_2012_Secondary
XprMatrix< E, NRows, NCols > Class Template Reference
Represents the expression for vectors at any node in the parse tree. More...
#include <tvmet/xpr/Matrix.h>
Inherits TvmetBase< XprMatrix< E, NRows, NCols > >.
Public Types | |
enum | { Rows = NRows, Cols = NCols, Size = Rows * Cols } |
Dimensions. More... | |
enum | |
Complexity counter. More... | |
Public Member Functions | |
XprMatrix (const E &e) | |
Constructor. | |
XprMatrix (const XprMatrix &rhs) | |
Copy Constructor. | |
value_type | operator() (std::size_t i, std::size_t j) const |
access by index. | |
template<class Dest , class Assign > | |
void | assign_to (Dest &dest, const Assign &assign_fn) const |
assign this expression to Matrix dest. |
Detailed Description
template<class E, std::size_t NRows, std::size_t NCols>
class tvmet::XprMatrix< E, NRows, NCols >
Represents the expression for vectors at any node in the parse tree.
Specifically, XprMatrix is the class that wraps the expression, and the expression itself is represented by the template parameter E. The class XprMatrix is known as an anonymizing expression wrapper because it can hold any subexpression of arbitrary complexity, allowing clients to work with any expression by holding on to it via the wrapper, without having to know the name of the type object that actually implements the expression.
- Note:
- leave the CCtors non-explicit to allow implicit type conversation.
Definition at line 50 of file xpr/Matrix.h.
Member Enumeration Documentation
anonymous enum |
Dimensions.
- Enumerator:
Rows Number of rows.
Cols Number of cols.
Size Complete Size of Matrix.
Definition at line 58 of file xpr/Matrix.h.
anonymous enum |
Complexity counter.
Definition at line 66 of file xpr/Matrix.h.
Constructor & Destructor Documentation
XprMatrix | ( | const E & | e ) | [explicit] |
Constructor.
Definition at line 77 of file xpr/Matrix.h.
Member Function Documentation
void assign_to | ( | Dest & | dest, |
const Assign & | assign_fn | ||
) | const |
assign this expression to Matrix dest.
Definition at line 112 of file xpr/Matrix.h.
value_type operator() | ( | std::size_t | i, |
std::size_t | j | ||
) | const |
access by index.
Definition at line 89 of file xpr/Matrix.h.
Generated on Tue Jul 12 2022 19:00:12 by 1.7.2