Libbarrett  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
barrett::math::Matrix< R, C, Units > Class Template Reference
Inheritance diagram for barrett::math::Matrix< R, C, Units >:
Matrix

List of all members.

Public Types

typedef Eigen::Matrix< double,
R, C, Eigen::RowMajorBit > 
Base
typedef Matrix< R, C, Units > type
typedef boost::mpl::if_c
< Base::IsVectorAtCompileTime,
gsl_vector, gsl_matrix >::type 
gsl_type
typedef Matrix< R, C > unitless_type

Public Member Functions

 Matrix (double x, double y)
 Matrix (double x, double y, double z)
 Matrix (double x, double y, double z, double w)
 Matrix (const double *data)
template<typename OtherDerived >
 Matrix (const Eigen::MatrixBase< OtherDerived > &other)
Matrixoperator= (const Matrix &other)
template<int OtherR, int OtherC, typename OtherUnits >
Matrix< R, C, Units > & operator= (const Matrix< OtherR, OtherC, OtherUnits > &other)
template<typename OtherDerived >
 Matrix (const Eigen::RotationBase< OtherDerived, Base::ColsAtCompileTime > &r)
 Matrix (double d=0.0)
 Matrix (int r, double d=0.0)
 Matrix (int r, int c, double d=0.0)
 Matrix (const gsl_type *gslType)
 Matrix (const libconfig::Setting &setting)
 Matrix (const Matrix &a)
void serialize (char *dest) const
void copyTo (gsl_type *gslType) const throw (std::logic_error)
void copyFrom (const gsl_type *gslType) throw (std::logic_error)
void copyFrom (const libconfig::Setting &setting)
gsl_type * asGslType ()
const gsl_type * asGslType () const

Static Public Member Functions

static size_t serializedLength ()
static Matrix< R, C, Units > unserialize (char *source)

Static Public Attributes

static const size_t SIZE = R*C
 Length of the array. Avoid using this if possible in case dynamic sizing is supported in the future.

Protected Member Functions

void resizeIfDynamic (int r, int c=1)
void initGslType (gsl_vector *g)
void initGslType (gsl_matrix *g)
void resizeToMatchIfDynamic (const gsl_vector *g)
void resizeToMatchIfDynamic (const gsl_matrix *g)
void checkSize (const gsl_vector *g) const
void checkSize (const gsl_matrix *g) const
void copyToHelper (gsl_vector *g) const
void copyToHelper (gsl_matrix *g) const
void copyFromHelper (const gsl_vector *g)
void copyFromHelper (const gsl_matrix *g)

Protected Attributes

gsl_type gsl

template<int R, int C, typename Units>
class barrett::math::Matrix< R, C, Units >


Member Typedef Documentation

template<int R, int C, typename Units>
typedef Matrix<R,C> barrett::math::Matrix< R, C, Units >::unitless_type

Used by clients of child classes to loose type info when necessary.

Sometimes it is useful to cast a specific barrett::units into a generic Matrix of the appropriate size. unitless_type gives easy access to the the correct type.


Constructor & Destructor Documentation

template<int R, int C, typename Units >
barrett::math::Matrix< R, C, Units >::Matrix ( double  d = 0.0) [inline, explicit]

Default and initial value ctor.

Initializes all coefficients of the Matrix to a given value.

Parameters:
[in]dThe initial value of the Matrix's coefficients.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines