Cortex  10.0.0-a4
Public Types | Static Public Member Functions | List of all members
IECore::MatrixTraits< T > Struct Template Reference

#include <MatrixTraits.h>

Public Types

typedef float BaseType
 

Static Public Member Functions

static unsigned int dimensions ()
 
static BaseType get (const T &v, unsigned int i, unsigned int j)
 
static void set (T &v, unsigned int i, unsigned int j, BaseType x)
 

Detailed Description

template<typename T>
struct IECore::MatrixTraits< T >

The MatrixTraits struct provides a means of using different matrix classes within templated code. It provides the basis for the functions in MatrixOps.h, which provide common matrix operations using the underlying MatrixTraits classes. To add support for a new matrix class simply specialise the struct appropriately for that type.


The documentation for this struct was generated from the following file: