Container object for linear algebra operations. More...
#include <mvector.hpp>
Public Member Functions | |
VectorLA () | |
Default constructor. More... | |
VectorLA (const VectorLA &vecla) | |
Copy constructor. More... | |
VectorLA (const Vector &vec) | |
Constructor for VectorLA with vector vec with coefficient 1. More... | |
VectorLA (const Vector &vec, double coef) | |
Constructor for VectorLA with vector vec with coefficient coef. More... | |
double | operator[] (int i) const |
Operator for pointing to elements of linear algebra operations. More... | |
double | operator() (int i) const |
Operator for pointing to elements of linear algebra operations. More... | |
VectorLA | operator+ (const VectorLA &vecla) const |
Operator for adding vectors. More... | |
VectorLA | operator- (const VectorLA &vecla) const |
Operator for subtracting vectors. More... | |
VectorLA | operator- () const |
Operator for unary minus. More... | |
VectorLA | operator* (double x) const |
Operator for multiplying vector with a constant. More... | |
Public Attributes | |
std::vector< VectorRef > | _refs |
List of linear algebra operations. More... | |
Friends | |
VectorLA | operator* (double x, const VectorLA &vecla) |
Operator for multiplying vector with a constant. More... | |
Detailed Description
Container object for linear algebra operations.
This container object is used to build and store a list of coefficients and vectors for linear algebra operations. For more information about the use of VectorLA, see Vector.
Constructor & Destructor Documentation
◆ VectorLA() [1/4]
|
inline |
Default constructor.
◆ VectorLA() [2/4]
|
inline |
Copy constructor.
◆ VectorLA() [3/4]
|
inline |
Constructor for VectorLA with vector vec with coefficient 1.
◆ VectorLA() [4/4]
|
inline |
Constructor for VectorLA with vector vec with coefficient coef.
Member Function Documentation
◆ operator()()
|
inline |
Operator for pointing to elements of linear algebra operations.
Range checking is done for i if SPM_RANGE_CHECK
is defined. Throws MErrorRange exception on range checking errors.
◆ operator*()
Vector::VectorLA Vector::VectorLA::operator* | ( | double | x | ) | const |
Operator for multiplying vector with a constant.
◆ operator+()
Vector::VectorLA Vector::VectorLA::operator+ | ( | const VectorLA & | vecla | ) | const |
Operator for adding vectors.
◆ operator-() [1/2]
Vector::VectorLA Vector::VectorLA::operator- | ( | ) | const |
Operator for unary minus.
◆ operator-() [2/2]
Vector::VectorLA Vector::VectorLA::operator- | ( | const VectorLA & | vecla | ) | const |
Operator for subtracting vectors.
◆ operator[]()
|
inline |
Operator for pointing to elements of linear algebra operations.
Range checking is done for i if SPM_RANGE_CHECK
is defined. Throws MErrorRange exception on range checking errors.
This operator can be used to calculate algebra for only one coordinate of vectors without any excess calculation.
Friends And Related Function Documentation
◆ operator*
Operator for multiplying vector with a constant.
Member Data Documentation
◆ _refs
std::vector<VectorRef> Vector::VectorLA::_refs |
List of linear algebra operations.
The documentation for this struct was generated from the following files: