Inherits opentl::math::Matrix.
Inherited by opentl::math::Vector2, opentl::math::Vector3, opentl::math::Vector4, and opentl::math::Vector6.
Public Member Functions | |
virtual double | abs () |
Calculate absolute value (= length) of vector. | |
virtual void | add (const double s, const opentl::math::Vector &b, opentl::math::Vector &c) |
virtual void | add (const Vector &b, Vector &c) |
this + b = c | |
virtual double | calcStdDeviation () |
Function to calculate the Standard Deviation of a vector. | |
virtual std::size_t | dimension () const |
virtual void | mult (const Vector &b, SquareMatrix &c) |
this * b = c | |
virtual void | mult (const double s, Vector &c) |
this * s = c | |
virtual void | normalize () |
double & | operator() (unsigned int row, unsigned int col=0) const |
double & | operator[] (unsigned int n) const |
Get vector value at index n. | |
virtual void | sub (const Vector &b, Vector &c) |
this - b = c | |
Vector (const Matrix &matrix) | |
Constructor based on an existing matrix. | |
Vector (const Vector &matrix) | |
Constructor based on an existing Vector. | |
Vector (std::size_t dim) | |
Constructor. | |
Vector () | |
virtual | ~Vector () |
Destructor. |
opentl::math::Vector::Vector | ( | ) |
opentl::math::Vector::Vector | ( | std::size_t | dim | ) | [explicit] |
Constructor.
dim | dimension of vector |
opentl::math::Vector::Vector | ( | const Vector & | matrix | ) | [explicit] |
opentl::math::Vector::Vector | ( | const Matrix & | matrix | ) | [explicit] |
Constructor based on an existing matrix.
matrix | existing matrix |
virtual opentl::math::Vector::~Vector | ( | ) | [virtual] |
Destructor.
virtual double opentl::math::Vector::abs | ( | ) | [virtual] |
Calculate absolute value (= length) of vector.
virtual void opentl::math::Vector::add | ( | const double | s, | |
const opentl::math::Vector & | b, | |||
opentl::math::Vector & | c | |||
) | [virtual] |
virtual double opentl::math::Vector::calcStdDeviation | ( | ) | [virtual] |
Function to calculate the Standard Deviation of a vector.
virtual std::size_t opentl::math::Vector::dimension | ( | ) | const [virtual] |
get dimension of vector
Reimplemented in opentl::math::Vector2, opentl::math::Vector3, and opentl::math::Vector4.
virtual void opentl::math::Vector::mult | ( | const Vector & | b, | |
SquareMatrix & | c | |||
) | [virtual] |
virtual void opentl::math::Vector::mult | ( | const double | s, | |
Vector & | c | |||
) | [virtual] |
this * s = c
virtual void opentl::math::Vector::normalize | ( | ) | [virtual] |
normalize vector
Reimplemented in opentl::math::Vector2, opentl::math::Vector3, and opentl::math::Vector4.
double& opentl::math::Vector::operator() | ( | unsigned int | row, | |
unsigned int | col = 0 | |||
) | const [inline] |
double& opentl::math::Vector::operator[] | ( | unsigned int | n | ) | const [inline] |
Get vector value at index n.
n | index value |