 |
Visual Servoing Platform
version 3.2.0
|
42 #include <visp3/core/vpArray2D.h>
43 #include <visp3/core/vpMath.h>
44 #include <visp3/core/vpPoseVector.h>
45 #include <visp3/core/vpRotationVector.h>
46 #include <visp3/core/vpRowVector.h>
101 #ifdef VISP_HAVE_CPP11_COMPATIBILITY
127 std::ostream &
cppPrint(std::ostream &os,
const std::string &matrixName =
"A",
bool octet =
false)
const;
128 std::ostream &
csvPrint(std::ostream &os)
const;
134 inline void deg2rad()
136 double d2r = M_PI / 180.0;
162 "Cannot extract a (%dx1) column vector from a (%dx1) "
163 "column vector starting at index %d",
177 std::ostream &
maplePrint(std::ostream &os)
const;
186 inline const double &
operator[](
unsigned int n)
const {
return *(
data + n); }
196 #ifdef VISP_HAVE_CPP11_COMPATIBILITY
222 int print(std::ostream &s,
unsigned int length,
char const *intro = 0)
const;
228 inline void rad2deg()
230 double r2d = 180.0 / M_PI;
235 void reshape(
vpMatrix &M,
const unsigned int &nrows,
const unsigned int &ncols);
236 vpMatrix reshape(
const unsigned int &nrows,
const unsigned int &ncols);
255 void resize(
const unsigned int nrows,
const unsigned int ncols,
const bool flagNullify)
259 "Cannot resize a column vector to a (%dx%d) "
260 "dimension vector that has more than one column",
266 void stack(
double d);
272 std::vector<double> toStdVector();
300 static double stdev(
const vpColVector &v,
const bool useBesselCorrection =
false);
302 #if defined(VISP_BUILD_DEPRECATED_FUNCTIONS)
311 vp_deprecated
void init() {}
315 vp_deprecated
vpColVector rows(
unsigned int first_row,
unsigned int last_row)
const
317 return vpColVector(*
this, first_row - 1, last_row - first_row + 1);
322 vp_deprecated
void setIdentity(
const double &val = 1.0);
341 vp_deprecated
void insert(
const vpColVector &v,
const unsigned int r,
const unsigned int c = 0);
346 #ifndef DOXYGEN_SHOULD_SKIP_THIS
unsigned int colNum
Number of columns in the array.
vpArray2D< Type > hadamard(const vpArray2D< Type > &m) const
vpMatrix operator-() const
void insert(const vpMatrix &A, const unsigned int r, const unsigned int c)
vpMatrix extract(unsigned int r, unsigned int c, unsigned int nrows, unsigned int ncols) const
double euclideanNorm() const
std::ostream & maplePrint(std::ostream &os) const
std::ostream & matlabPrint(std::ostream &os) const
double ** rowPtrs
Address of the first element of each rows.
vpMatrix & operator-=(const vpMatrix &B)
Operation A = A - B.
double infinityNorm() const
vpMatrix & operator*=(const double x)
Multiply all the element of the matrix by x : Aij = Aij * x.
vpColVector operator*(const double &x, const vpColVector &v)
Class that consider the case of a translation vector.
vpMatrix operator/(const double x) const
Cij = Aij / x (A is unchanged)
vp_deprecated void stackMatrices(const vpMatrix &A)
vpMatrix operator*(const vpMatrix &B) const
Implementation of a generic 2D array used as vase class of matrices and vectors.
Implementation of column vector and the associated operations.
Implementation of a matrix and operations on matrices.
unsigned int rowNum
Number of rows in the array.
std::ostream & cppPrint(std::ostream &os, const std::string &matrixName="A", bool octet=false) const
Implementation of a generic rotation vector.
vpArray2D< Type > & operator=(Type x)
Set all the elements of the array to x.
Implementation of a pose vector and operations on poses.
double * data
Address of the first element of the data array.
vpMatrix operator+(const vpMatrix &B) const
vpMatrix & operator/=(double x)
Divide all the element of the matrix by x : Aij = Aij / x.
vpMatrix & operator+=(const vpMatrix &B)
Operation A = A + B.
vp_deprecated void setIdentity(const double &val=1.0)
Type * operator[](unsigned int i)
Set element using A[i][j] = x.
vp_deprecated void init()
Implementation of row vector and the associated operations.
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true, const bool recopy_=true)
int print(std::ostream &s, unsigned int length, char const *intro=0) const
unsigned int dsize
Current array size (rowNum * colNum)
error that can be emited by ViSP classes.
vpMatrix transpose() const
void stack(const vpMatrix &A)
std::ostream & csvPrint(std::ostream &os) const
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)