43 #include <visp3/core/vpArray2D.h>
44 #include <visp3/core/vpRowVector.h>
45 #include <visp3/core/vpMath.h>
46 #include <visp3/core/vpRotationVector.h>
47 #include <visp3/core/vpPoseVector.h>
125 double d2r = M_PI/180.0;
150 "Cannot extract a (%dx1) column vector from a (%dx1) column vector starting at index %d",
196 int print(std::ostream& s,
unsigned int length,
char const* intro=0)
const;
203 double r2d = 180.0/M_PI;
208 void reshape(
vpMatrix & M,
const unsigned int &nrows,
const unsigned int &ncols);
209 vpMatrix reshape(
const unsigned int &nrows,
const unsigned int &ncols);
217 void resize(
const unsigned int i,
const bool flagNullify =
true)
231 void resize(
const unsigned int nrows,
const unsigned int ncols,
const bool flagNullify)
235 "Cannot resize a column vector to a (%dx%d) dimension vector that has more than one column",
240 void stack(
const double &d);
259 return crossProd(a,b);
275 static double stdev(
const vpColVector &v,
const bool useBesselCorrection=
false);
277 #if defined(VISP_BUILD_DEPRECATED_FUNCTIONS)
292 return vpColVector(*
this, first_row-1, last_row-first_row+1);
297 vp_deprecated
void setIdentity(
const double & val=1.0) ;
315 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Implementation of a matrix and operations on matrices.
Implementation of a generic rotation vector.
vpColVector extract(unsigned int r, unsigned int colsize) const
vpArray2D< Type > & operator=(Type x)
Set all the elements of the array to x.
double infinityNorm() const
vp_deprecated void init()
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true)
static vpColVector cross(const vpColVector &a, const vpColVector &b)
Implementation of row vector and the associated operations.
vpColVector operator*(const double &x, const vpColVector &v)
vpMatrix & operator*=(const double x)
Multiply all the element of the matrix by x : Aij = Aij * x.
void stack(const vpMatrix &A)
vpMatrix & operator/=(double x)
Divide all the element of the matrix by x : Aij = Aij / x.
error that can be emited by ViSP classes.
double & operator[](unsigned int n)
Operator that allows to set a value of an element : v[i] = x.
double * data
Address of the first element of the data array.
Implementation of a generic 2D array used as vase class of matrices and vectors.
vpMatrix & operator+=(const vpMatrix &B)
Operation A = A + B.
static vp_deprecated void stackMatrices(const vpColVector &A, const vpColVector &B, vpColVector &C)
vpMatrix & operator-=(const vpMatrix &B)
Operation A = A - B.
vpColVector(unsigned int n, double val)
Construct a column vector of size n. Each element is set to val.
unsigned int rowNum
Number of rows in the array.
void insert(const vpMatrix &A, const unsigned int r, const unsigned int c)
vp_deprecated void setIdentity(const double &val=1.0)
vpColVector(unsigned int n)
Construct a column vector of size n. All the elements are initialized to zero.
vp_deprecated void init()
vp_deprecated void stackMatrices(const vpColVector &r)
vpMatrix operator+(const vpMatrix &B) const
vpMatrix transpose() const
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)
unsigned int colNum
Number of columns in the array.
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify)
int print(std::ostream &s, unsigned int length, char const *intro=0) const
const double & operator[](unsigned int n) const
Operator that allows to get the value of an element : x = v[i].
vp_deprecated vpColVector rows(unsigned int first_row, unsigned int last_row) const
Implementation of column vector and the associated operations.
double euclideanNorm() const
Implementation of a pose vector and operations on poses.
vpMatrix operator/(const double x) const
Cij = Aij / x (A is unchanged)
vpMatrix operator*(const vpMatrix &B) const
vpColVector()
Basic constructor that creates an empty 0-size column vector.
static vp_deprecated vpColVector stackMatrices(const vpColVector &A, const vpColVector &B)
vpMatrix operator-() const
unsigned int dsize
Current array size (rowNum * colNum)
Class that consider the case of a translation vector.
double ** rowPtrs
Address of the first element of each rows.
vpColVector(const vpColVector &v)
Copy constructor that allows to construct a column vector from an other one.
void resize(const unsigned int i, const bool flagNullify=true)