47 #include <visp/vpMatrix.h>
48 #include <visp/vpRowVector.h>
49 #include <visp/vpMath.h>
98 void resize(
const unsigned int i,
const bool flagNullify =
true)
133 return vpColVector(*
this, first_row-1, last_row-first_row+1);
138 const unsigned int &nrows,
const unsigned int &ncols);
139 vpMatrix reshape(
const unsigned int &nrows,
const unsigned int &ncols);
141 void stack(
const double &b);
159 return crossProd(a,b);}
183 double r2d = 180.0/M_PI;
185 for (
unsigned int i=0; i <
rowNum; i++)
193 double d2r = M_PI/180.0;
195 for (
unsigned int i=0; i <
rowNum; i++)
204 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
vpColVector(unsigned int n, double val)
Constructor of vector of size n. Each element is set to val.
void insert(const vpMatrix &A, const unsigned int r, const unsigned int c)
vpColVector(unsigned int n)
Constructor of vector of size n. Each element is set to 0.
vpMatrix & operator=(const vpMatrix &B)
Copy operator. Allow operation such as A = B.
vpMatrix operator+(const vpMatrix &B) const
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)