48 #include <visp/vpMatrix.h>
98 inline void resize(
const unsigned int i,
const bool flagNullify =
true)
131 void reshape(
vpMatrix & m,
const unsigned int &nrows,
const unsigned int &ncols);
132 vpMatrix reshape(
const unsigned int &nrows,
const unsigned int &ncols);
147 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.
void resize(const unsigned int nrows, const unsigned int ncols, const bool nullify=true)
Definition of the row vector class.
double * operator[](unsigned int i)
write elements Aij (usage : A[i][j] = x )
unsigned int size() const
double * data
address of the first element of the data array
void insert(const vpMatrix &A, const unsigned int r, const unsigned int c)
vpMatrix & operator=(const vpMatrix &B)
Copy operator. Allow operation such as A = B.
vpMatrix operator+(const vpMatrix &B) const
void resize(const unsigned int i, const bool flagNullify=true)
Class that provides a data structure for the column vectors as well as a set of operations on these v...
unsigned int getCols() const
Return the number of columns of the matrix.
vpRowVector(unsigned int n, double val)
Constructor of vector of size n. Each element is set to val.
vpMatrix operator*(const vpMatrix &B) const
vpMatrix operator-() const
vpRowVector(unsigned int n)
Constructor of vector of size n.
vpRowVector()
Basic constructor.