C-XSC - A C++ Class Library for Extended Scientific Computing
2.5.4
|
Represents a row or column vector of a sparse matrix. More...
#include <scimatrix.hpp>
Public Member Functions | |
scimatrix_subv & | operator*= (const real &) |
Assign the componentwise product of the subvector with a scalar to the subvector. | |
scimatrix_subv & | operator*= (const complex &) |
Assign the componentwise product of the subvector with a scalar to the subvector. | |
scimatrix_subv & | operator*= (const interval &) |
Assign the componentwise product of the subvector with a scalar to the subvector. | |
scimatrix_subv & | operator*= (const cinterval &) |
Assign the componentwise product of the subvector with a scalar to the subvector. | |
scimatrix_subv & | operator+= (const srvector &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const srvector_slice &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const rvector &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const rvector_slice &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const scvector &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const scvector_slice &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const cvector &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const cvector_slice &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const sivector &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const sivector_slice &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const ivector &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const ivector_slice &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const scivector &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const scivector_slice &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const civector &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator+= (const civector_slice &) |
Assign the sum of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const srvector &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const srvector_slice &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const rvector &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const rvector_slice &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const scvector &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const scvector_slice &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const cvector &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const cvector_slice &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const sivector &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const sivector_slice &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const ivector &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const ivector_slice &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const scivector &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const scivector_slice &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const civector &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator-= (const civector_slice &) |
Assign the difference of the subvector with a vector to the subvector. | |
scimatrix_subv & | operator/= (const real &) |
Assign the componentwise division of the subvector with a scalar to the subvector. | |
scimatrix_subv & | operator/= (const complex &) |
Assign the componentwise division of the subvector with a scalar to the subvector. | |
scimatrix_subv & | operator/= (const interval &) |
Assign the componentwise division of the subvector with a scalar to the subvector. | |
scimatrix_subv & | operator/= (const cinterval &) |
Assign the componentwise division of the subvector with a scalar to the subvector. | |
scimatrix_subv & | operator= (const real &v) |
Assigns v to all elements of the subvector. | |
scimatrix_subv & | operator= (const complex &v) |
Assigns v to all elements of the subvector. | |
scimatrix_subv & | operator= (const interval &v) |
Assigns v to all elements of the subvector. | |
scimatrix_subv & | operator= (const cinterval &v) |
Assigns v to all elements of the subvector. | |
scimatrix_subv & | operator= (const srvector &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const scvector &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const sivector &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const scivector &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const srvector_slice &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const scvector_slice &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const sivector_slice &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const scivector_slice &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const rvector &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const cvector &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const ivector &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const civector &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const rvector_slice &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const cvector_slice &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const ivector_slice &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const civector_slice &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const srmatrix_subv &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const simatrix_subv &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const scmatrix_subv &v) |
Assigns a vector to a subvector. | |
scimatrix_subv & | operator= (const scimatrix_subv &v) |
Assigns a vector to a subvector. | |
cinterval & | operator[] (const int i) |
Returns a reference to the i-th element of the subvector. | |
const cinterval | operator[] (const int i) const |
Returns a copy of the i-th element of the subvector. | |
scimatrix_subv & | operator|= (const srvector &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const srvector_slice &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const rvector &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const rvector_slice &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const scvector &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const scvector_slice &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const cvector &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const cvector_slice &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const sivector &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const sivector_slice &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const ivector &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const ivector_slice &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const scivector &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const scivector_slice &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const civector &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
scimatrix_subv & | operator|= (const civector_slice &) |
Assign the convex hull of the subvector and a vector to the subvector. | |
Friends | |
sivector | Im (const scimatrix_subv &) |
Returns the imaginary part of the subvector. | |
scvector | Inf (const scimatrix_subv &) |
Returns the infimum of the subvector. | |
srvector | InfIm (const scimatrix_subv &) |
Returns the imaginary part of the infimum of the subvector. | |
srvector | InfRe (const scimatrix_subv &) |
Returns the real part of the infimum of the subvector. | |
int | Lb (const scimatrix_subv &) |
Returns the lower index bound of the subvector. | |
scivector | operator- (const scimatrix_subv &) |
Unary negation operator. | |
std::istream & | operator>> (std::istream &, scimatrix_subv &) |
Standard input operator for subvectors. | |
sivector | Re (const scimatrix_subv &) |
Returns the real part of the subvector. | |
scvector | Sup (const scimatrix_subv &) |
Returns the supremum of the subvector. | |
srvector | SupIm (const scimatrix_subv &) |
Returns the imaginary part of the supremum of the subvector. | |
srvector | SupRe (const scimatrix_subv &) |
Returns the real part of the supremum of the subvector. | |
int | Ub (const scimatrix_subv &) |
Returns the upper index bound of the subvector. | |
int | VecLen (const scimatrix_subv &) |
Returns the length of the subvector. |
Represents a row or column vector of a sparse matrix.
This is a helper class created by the [] operator to represent a row or column of a sparse matrix. This helper class provides read and write access to the subvector using the standard operators. It is normally not necessary for the user to use this class explicitly, which is why the constructors are private.
Definition at line 9628 of file scimatrix.hpp.
cinterval& cxsc::scimatrix_subv::operator[] | ( | const int | i | ) | [inline] |
Returns a reference to the i-th element of the subvector.
A refernce to the i-th element is returned. If this element is not explicitly stored, it is added as an explicit zero entry to the data structure.
Definition at line 9648 of file scimatrix.hpp.
const cinterval cxsc::scimatrix_subv::operator[] | ( | const int | i | ) | const [inline] |
Returns a copy of the i-th element of the subvector.
A copy to the i-th element is returned. If this element is not explicitly stored, 0 is returned
Definition at line 9668 of file scimatrix.hpp.