C-XSC - A C++ Class Library for Extended Scientific Computing  2.5.4
cxsc::simatrix_subv Class Reference

Represents a row or column vector of a sparse matrix. More...

#include <simatrix.hpp>

List of all members.

Public Member Functions

simatrix_subvoperator*= (const real &)
 Assign the componentwise product of the subvector with a scalar to the subvector.
simatrix_subvoperator*= (const interval &)
 Assign the componentwise product of the subvector with a scalar to the subvector.
simatrix_subvoperator+= (const srvector &)
 Assign the sum of the subvector with a vector to the subvector.
simatrix_subvoperator+= (const srvector_slice &)
 Assign the sum of the subvector with a vector to the subvector.
simatrix_subvoperator+= (const rvector &)
 Assign the sum of the subvector with a vector to the subvector.
simatrix_subvoperator+= (const rvector_slice &)
 Assign the sum of the subvector with a vector to the subvector.
simatrix_subvoperator+= (const sivector &)
 Assign the sum of the subvector with a vector to the subvector.
simatrix_subvoperator+= (const sivector_slice &)
 Assign the sum of the subvector with a vector to the subvector.
simatrix_subvoperator+= (const ivector &)
 Assign the sum of the subvector with a vector to the subvector.
simatrix_subvoperator+= (const ivector_slice &)
 Assign the sum of the subvector with a vector to the subvector.
simatrix_subvoperator-= (const srvector &)
 Assign the difference of the subvector with a vector to the subvector.
simatrix_subvoperator-= (const srvector_slice &)
 Assign the difference of the subvector with a vector to the subvector.
simatrix_subvoperator-= (const rvector &)
 Assign the difference of the subvector with a vector to the subvector.
simatrix_subvoperator-= (const rvector_slice &)
 Assign the difference of the subvector with a vector to the subvector.
simatrix_subvoperator-= (const sivector &)
 Assign the difference of the subvector with a vector to the subvector.
simatrix_subvoperator-= (const sivector_slice &)
 Assign the difference of the subvector with a vector to the subvector.
simatrix_subvoperator-= (const ivector &)
 Assign the difference of the subvector with a vector to the subvector.
simatrix_subvoperator-= (const ivector_slice &)
 Assign the difference of the subvector with a vector to the subvector.
simatrix_subvoperator/= (const real &)
 Assign the componentwise division of the subvector with a scalar to the subvector.
simatrix_subvoperator/= (const interval &)
 Assign the componentwise division of the subvector with a scalar to the subvector.
simatrix_subvoperator= (const real &v)
 Assigns v to all elements of the subvector.
simatrix_subvoperator= (const interval &v)
 Assigns v to all elements of the subvector.
simatrix_subvoperator= (const srvector &v)
 Assigns a vector to a subvector.
simatrix_subvoperator= (const sivector &v)
 Assigns a vector to a subvector.
simatrix_subvoperator= (const srvector_slice &v)
 Assigns a vector to a subvector.
simatrix_subvoperator= (const sivector_slice &v)
 Assigns a vector to a subvector.
simatrix_subvoperator= (const rvector &v)
 Assigns a vector to a subvector.
simatrix_subvoperator= (const ivector &v)
 Assigns a vector to a subvector.
simatrix_subvoperator= (const rvector_slice &v)
 Assigns a vector to a subvector.
simatrix_subvoperator= (const ivector_slice &v)
 Assigns a vector to a subvector.
simatrix_subvoperator= (const srmatrix_subv &v)
 Assigns a vector to a subvector.
simatrix_subvoperator= (const simatrix_subv &v)
 Assigns a vector to a subvector.
intervaloperator[] (const int i)
 Returns a reference to the i-th element of the subvector.
const interval operator[] (const int i) const
 Returns a copy of the i-th element of the subvector.
simatrix_subvoperator|= (const srvector &)
 Assign the convex hull of the subvector and a vector to the subvector.
simatrix_subvoperator|= (const srvector_slice &)
 Assign the convex hull of the subvector and a vector to the subvector.
simatrix_subvoperator|= (const rvector &)
 Assign the convex hull of the subvector and a vector to the subvector.
simatrix_subvoperator|= (const rvector_slice &)
 Assign the convex hull of the subvector and a vector to the subvector.
simatrix_subvoperator|= (const sivector &)
 Assign the convex hull of the subvector and a vector to the subvector.
simatrix_subvoperator|= (const sivector_slice &)
 Assign the convex hull of the subvector and a vector to the subvector.
simatrix_subvoperator|= (const ivector &)
 Assign the convex hull of the subvector and a vector to the subvector.
simatrix_subvoperator|= (const ivector_slice &)
 Assign the convex hull of the subvector and a vector to the subvector.

Friends

srvector Inf (const simatrix_subv &)
 Returns the infimum of the subvector.
int Lb (const simatrix_subv &)
 Returns the lower index bound of the subvector.
sivector operator- (const simatrix_subv &)
 Unary negation operator.
std::istream & operator>> (std::istream &, simatrix_subv &)
 Standard input operator for subvectors.
srvector Sup (const simatrix_subv &)
 Returns the supremum of the subvector.
int Ub (const simatrix_subv &)
 Returns the upper index bound of the subvector.
int VecLen (const simatrix_subv &)
 Returns the length of the subvector.

Detailed Description

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 4383 of file simatrix.hpp.


Member Function Documentation

interval& cxsc::simatrix_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 4403 of file simatrix.hpp.

const interval cxsc::simatrix_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 4423 of file simatrix.hpp.


The documentation for this class was generated from the following files: