47 #include <visp/vpMatrix.h>
48 #include <visp/vpRowVector.h>
49 #include <visp/vpMath.h>
94 void resize(
const unsigned int i,
const bool flagNullify =
true)
128 return vpColVector(*
this, first_row-1, last_row-first_row+1);
133 const unsigned int &nrows,
const unsigned int &ncols);
134 vpMatrix reshape(
const unsigned int &nrows,
const unsigned int &ncols);
136 void stack(
const double &b);
154 return crossProd(a,b);}
178 double r2d = 180.0/M_PI;
180 for (
unsigned int i=0; i <
rowNum; i++)
188 double d2r = M_PI/180.0;
190 for (
unsigned int i=0; i <
rowNum; i++)
199 inline unsigned int size()
const
friend VISP_EXPORT std::ostream & operator<<(std::ostream &s, const vpMatrix &m)
std::cout a matrix
Definition of the vpMatrix class.
Class that consider the case of a generic rotation vector (cannot be used as is !) consisting in thre...
void resize(const unsigned int nrows, const unsigned int ncols, const bool nullify=true)
static vpColVector cross(const vpColVector &a, const vpColVector &b)
Definition of the row vector class.
double * operator[](unsigned int i)
write elements Aij (usage : A[i][j] = x )
void skew(const vpTranslationVector &t, vpMatrix &M)
unsigned int size() const
double * data
address of the first element of the data array
vpMatrix & operator=(const vpMatrix &B)
Copy operator. Allow operation such as A = B.
vpMatrix operator+(const vpMatrix &B) const
vpColVector(unsigned int nn)
constructor of vector of size n
vpColVector rows(unsigned int first_row, unsigned int last_row)
unsigned int rowNum
number of rows
Class that provides a data structure for the column vectors as well as a set of operations on these v...
vpMatrix operator*(const vpMatrix &B) const
vpColVector()
basic constructor
vpMatrix operator-() const
unsigned int getRows() const
Return the number of rows of the matrix.
void resize(const unsigned int i, const bool flagNullify=true)