#include <LA_Vector.h>
Public Member Functions | |
| Vector () | |
| Standard constructor. | |
| Vector (int n) | |
| Constructs a vector with the specified dimension. | |
| Vector (int n, const double *v) | |
| Constructs a vector with the specified dimension. | |
| Vector (const Vector &v) | |
| Copy constructor. | |
| Vector (const Vector3< double > &v) | |
| Copy constructor. | |
| virtual | ~Vector () |
| Destructor. | |
| void | create (int n) |
| Recreates the vector with specified dimension and initalizes all entries to 0.0. | |
| void | create (int n, const double *v) |
| Recreates the vector with specified dimension and initalizes all entries with the values in the passed array. | |
| Vector & | operator= (const Vector &v) |
| Copy operator. | |
| Vector & | operator= (const Vector3< double > &v) |
| Copy operator. | |
| const double & | operator[] (int i) const |
| Constant element access operator (zero-based). | |
| double & | operator[] (int i) |
| Element access operator (zero-based). | |
| const double & | operator() (int i) const |
| Constant element access operator (one-based). | |
| double & | operator() (int i) |
| Element access operator (one-based). | |
| int | dim () const |
| Dimension of vector. | |
| Vector | sub (int index, int length) const |
| Extracts a subvector. | |
| void | set_sub (int index, const Vector &subv) |
| Sets a subvector inside this vector. | |
| Vector & | operator+= (const Vector &v) |
| Adds the passed vector to this vector. | |
| Vector & | operator-= (const Vector &v) |
| Substracts the passed vector from this vector. | |
| Vector & | operator *= (const double &s) |
| Multiplies this vector with the passed scalar. | |
| Vector & | operator/= (const double &s) |
| Divides this vector by the passed scalar. | |
| std::string | asString () const |
| Returns a human-readable representation of the vector. | |
| double | length () const |
| Returns the euclidian length of the vector. | |
Private Member Functions | |
| void | destroy () |
Private Attributes | |
| int | n |
| double * | content |
Friends | |
| class | Matrix |
| Vector | operator+ (const Vector &v1, const Vector &v2) |
| Adds to vectors. | |
| Vector | operator- (const Vector &v1, const Vector &v2) |
| Subtracts to vectors. | |
| Vector | operator * (const double &s, const Vector &v) |
| Multiplies a vector with a scalar. | |
| Vector | operator * (const Vector &v, const double &s) |
| Multiplies a vector with a scalar. | |
| Vector | operator * (const Matrix &M, const Vector &v) |
| Multiplies a matrix with a vector. | |
| Vector | operator/ (const Vector &v, const double &s) |
| Divides a vector by a scalar. | |
| double | operator * (const Vector &v1, const Vector &v2) |
| Calculates the inner product of two vector. | |
| Matrix | operator * (const Matrix &M1, const Matrix &M2) |
| Multiplies to matrices. | |
| Out & | operator<< (Out &stream, const Vector &v) |
| Out operator for GT-streams. | |
| In & | operator>> (In &stream, Vector &v) |
| In operator for GT-streams. | |
| Out & | operator<< (Out &stream, const Matrix &M) |
| Out operator for GT-streams. | |
| In & | operator>> (In &stream, Matrix &M) |
| In operator for GT-streams. | |
Definition at line 29 of file LA_Vector.h.
|
|
Standard constructor. Constructed vector has no entries. Definition at line 11 of file LA_Vector.cpp. Referenced by sub(). |
|
|
Constructs a vector with the specified dimension. Entries are initialized with 0.0.
Definition at line 15 of file LA_Vector.cpp. References create(). |
Here is the call graph for this function:

|
||||||||||||
|
Constructs a vector with the specified dimension. Entries are intialized with the values in the passed double array.
Definition at line 20 of file LA_Vector.cpp. References create(). |
Here is the call graph for this function:

|
|
Copy constructor.
Definition at line 25 of file LA_Vector.cpp. |
|
|
Copy constructor.
Definition at line 30 of file LA_Vector.cpp. |
|
|
Destructor.
Definition at line 35 of file LA_Vector.cpp. References destroy(). |
Here is the call graph for this function:

|
|
Recreates the vector with specified dimension and initalizes all entries to 0.0.
Definition at line 40 of file LA_Vector.cpp. References destroy(). Referenced by interpol::SplineInterpolation::CalcSplines(), LA::Eigenvalues::Eigenvalues(), operator=(), LA::operator>>(), LA::QR::QR(), and Vector(). |
Here is the call graph for this function:

|
||||||||||||
|
Recreates the vector with specified dimension and initalizes all entries with the values in the passed array.
Definition at line 52 of file LA_Vector.cpp. References destroy(). |
Here is the call graph for this function:

|
|
Copy operator.
Definition at line 64 of file LA_Vector.cpp. |
Here is the call graph for this function:

|
|
Copy operator.
Definition at line 70 of file LA_Vector.cpp. References create(), Vector3< V >::x, Vector3< V >::y, and Vector3< V >::z. |
Here is the call graph for this function:

|
|
Constant element access operator (zero-based).
Definition at line 79 of file LA_Vector.cpp. |
|
|
Element access operator (zero-based).
Definition at line 85 of file LA_Vector.cpp. |
|
|
Constant element access operator (one-based).
Definition at line 91 of file LA_Vector.cpp. |
|
|
Element access operator (one-based).
Definition at line 97 of file LA_Vector.cpp. |
|
|
Dimension of vector.
Definition at line 103 of file LA_Vector.cpp. Referenced by interpol::SplineInterpolation::CalcSplines(), interpol::SplineInterpolation::GetInterpolatedY(), LA::operator<<(), LA::LU::permute_copy(), LA::QR::solve(), and LA::LU::solve(). |
|
||||||||||||
|
Extracts a subvector.
Definition at line 108 of file LA_Vector.cpp. References Vector(). Referenced by LA::Matrix::get_sub(). |
Here is the call graph for this function:

|
||||||||||||
|
Sets a subvector inside this vector.
Definition at line 114 of file LA_Vector.cpp. Referenced by interpol::SplineInterpolation::CalcSplines(), and LA::Matrix::set_sub(). |
|
|
Adds the passed vector to this vector.
Definition at line 122 of file LA_Vector.cpp. |
|
|
Substracts the passed vector from this vector.
Definition at line 130 of file LA_Vector.cpp. |
|
|
Multiplies this vector with the passed scalar.
Definition at line 138 of file LA_Vector.cpp. |
|
|
Divides this vector by the passed scalar.
Definition at line 145 of file LA_Vector.cpp. |
|
|
Returns a human-readable representation of the vector.
Definition at line 152 of file LA_Vector.cpp. |
|
|
Returns the euclidian length of the vector.
Definition at line 159 of file LA_Vector.cpp. |
|
|
Definition at line 167 of file LA_Vector.cpp. |
|
|
Definition at line 209 of file LA_Vector.h. |
|
||||||||||||
|
Adds to vectors.
Definition at line 176 of file LA_Vector.cpp. |
|
||||||||||||
|
Subtracts to vectors.
Definition at line 183 of file LA_Vector.cpp. |
|
||||||||||||
|
Multiplies a vector with a scalar.
Definition at line 190 of file LA_Vector.cpp. |
|
||||||||||||
|
Multiplies a vector with a scalar.
Definition at line 197 of file LA_Vector.cpp. |
|
||||||||||||
|
Multiplies a matrix with a vector.
Definition at line 353 of file LA_Matrix.cpp. |
|
||||||||||||
|
Divides a vector by a scalar.
Definition at line 204 of file LA_Vector.cpp. |
|
||||||||||||
|
Calculates the inner product of two vector.
Definition at line 211 of file LA_Vector.cpp. |
|
||||||||||||
|
Multiplies to matrices.
Definition at line 333 of file LA_Matrix.cpp. |
|
||||||||||||
|
Out operator for GT-streams.
Definition at line 231 of file LA_Vector.cpp. |
|
||||||||||||
|
In operator for GT-streams.
Definition at line 240 of file LA_Vector.cpp. |
|
||||||||||||
|
Out operator for GT-streams.
Definition at line 435 of file LA_Matrix.cpp. |
|
||||||||||||
|
In operator for GT-streams.
Definition at line 445 of file LA_Matrix.cpp. |
|
|
Definition at line 193 of file LA_Vector.h. Referenced by LA::operator *(), operator+=(), operator-=(), LA::operator<<(), operator=(), LA::Matrix::set_column(), LA::Matrix::set_row(), set_sub(), and LA::Matrix::solve(). |
|
|
Definition at line 194 of file LA_Vector.h. Referenced by LA::operator *(), LA::Matrix::operator()(), operator+=(), operator-=(), LA::operator<<(), operator=(), LA::operator>>(), LA::Matrix::set_column(), set_sub(), and LA::Matrix::transpose(). |
1.3.6