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) | |
Matrix & | operator= (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 |
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.
barrett::math::Matrix< R, C, Units >::Matrix | ( | double | d = 0.0 | ) | [inline, explicit] |