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 double | calcStdDeviation () |
Function to calculate the Standard Deviation of a vector. | |
virtual std::size_t | dimension () const |
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. | |
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 | ) |
Constructor.
dim | dimension of vector |
opentl::math::Vector::Vector | ( | const Vector & | matrix | ) |
opentl::math::Vector::Vector | ( | const Matrix & | matrix | ) |
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 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::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 |