C-XSC - A C++ Class Library for Extended Scientific Computing
2.5.4
|
A slice of a sparse real interval matrix. More...
#include <simatrix.hpp>
Public Member Functions | |
interval & | element (const int i, const int j) |
Returns a reference to the element (i,j) of the matrix. | |
const interval | operator() (const int i, const int j) const |
Returns a copy of the element (i,j) of the matrix. | |
simatrix_slice & | operator*= (const srmatrix_slice &M) |
Assigns the product of the sparse slice and M to the slice. | |
simatrix_slice & | operator*= (const simatrix_slice &M) |
Assigns the product of the sparse slice and M to the slice. | |
simatrix_slice & | operator*= (const srmatrix &M) |
Assigns the product of the sparse slice and M to the slice. | |
simatrix_slice & | operator*= (const simatrix &M) |
Assigns the product of the sparse slice and M to the slice. | |
simatrix_slice & | operator*= (const rmatrix &M) |
Assigns the product of the sparse slice and M to the slice. | |
simatrix_slice & | operator*= (const imatrix &M) |
Assigns the product of the sparse slice and M to the slice. | |
simatrix_slice & | operator*= (const rmatrix_slice &M) |
Assigns the product of the sparse slice and M to the slice. | |
simatrix_slice & | operator*= (const imatrix_slice &M) |
Assigns the product of the sparse slice and M to the slice. | |
simatrix_slice & | operator*= (const real &r) |
Assigns the component wise product of the sparse slice and r to the slice. | |
simatrix_slice & | operator*= (const interval &r) |
Assigns the component wise product of the sparse slice and r to the slice. | |
simatrix_slice & | operator+= (const srmatrix_slice &M) |
Assigns the element wise sum of the sparse slice and M to the slice. | |
simatrix_slice & | operator+= (const simatrix_slice &M) |
Assigns the element wise sum of the sparse slice and M to the slice. | |
simatrix_slice & | operator+= (const srmatrix &M) |
Assigns the element wise sum of the sparse slice and M to the slice. | |
simatrix_slice & | operator+= (const simatrix &M) |
Assigns the element wise sum of the sparse slice and M to the slice. | |
simatrix_slice & | operator+= (const rmatrix &M) |
Assigns the element wise sum of the sparse slice and M to the slice. | |
simatrix_slice & | operator+= (const imatrix &M) |
Assigns the element wise sum of the sparse slice and M to the slice. | |
simatrix_slice & | operator+= (const rmatrix_slice &M) |
Assigns the element wise sum of the sparse slice and M to the slice. | |
simatrix_slice & | operator+= (const imatrix_slice &M) |
Assigns the element wise sum of the sparse slice and M to the slice. | |
simatrix_slice & | operator-= (const srmatrix_slice &M) |
Assigns the element wise difference of the sparse slice and M to the slice. | |
simatrix_slice & | operator-= (const simatrix_slice &M) |
Assigns the element wise difference of the sparse slice and M to the slice. | |
simatrix_slice & | operator-= (const srmatrix &M) |
Assigns the element wise difference of the sparse slice and M to the slice. | |
simatrix_slice & | operator-= (const simatrix &M) |
Assigns the element wise difference of the sparse slice and M to the slice. | |
simatrix_slice & | operator-= (const rmatrix &M) |
Assigns the element wise difference of the sparse slice and M to the slice. | |
simatrix_slice & | operator-= (const imatrix &M) |
Assigns the element wise difference of the sparse slice and M to the slice. | |
simatrix_slice & | operator-= (const rmatrix_slice &M) |
Assigns the element wise difference of the sparse slice and M to the slice. | |
simatrix_slice & | operator-= (const imatrix_slice &M) |
Assigns the element wise difference of the sparse slice and M to the slice. | |
simatrix_slice & | operator/= (const real &r) |
Assigns the component wise division of the sparse slice and M to the slice. | |
simatrix_slice & | operator/= (const interval &r) |
Assigns the component wise division of the sparse slice and M to the slice. | |
simatrix_slice & | operator= (const real &C) |
Assing C to all elements of the slice. | |
simatrix_slice & | operator= (const interval &C) |
Assing C to all elements of the slice. | |
simatrix_slice & | operator= (const srmatrix &C) |
Assing C to the slice. | |
simatrix_slice & | operator= (const simatrix &C) |
Assing C to the slice. | |
simatrix_slice & | operator= (const rmatrix &C) |
Assing C to the slice. | |
simatrix_slice & | operator= (const imatrix &C) |
Assing C to the slice. | |
simatrix_slice & | operator= (const rmatrix_slice &C) |
Assing C to the slice. | |
simatrix_slice & | operator= (const imatrix_slice &C) |
Assing C to the slice. | |
simatrix_slice & | operator= (const srmatrix_slice &C) |
Assing C to the slice. | |
simatrix_slice & | operator= (const simatrix_slice &C) |
Assing C to the slice. | |
simatrix_subv | operator[] (const int) |
Returns a row of the matrix. | |
simatrix_subv | operator[] (const cxscmatrix_column &) |
Returns a column of the matrix. | |
const simatrix_subv | operator[] (const int) const |
Returns a row of the matrix. | |
const simatrix_subv | operator[] (const cxscmatrix_column &) const |
Returns a column of the matrix. | |
simatrix_slice & | operator|= (const srmatrix_slice &M) |
Assigns the element wise convex hull of the sparse slice and M to the slice. | |
simatrix_slice & | operator|= (const simatrix_slice &M) |
Assigns the element wise convex hull of the sparse slice and M to the slice. | |
simatrix_slice & | operator|= (const srmatrix &M) |
Assigns the element wise convex hull of the sparse slice and M to the slice. | |
simatrix_slice & | operator|= (const simatrix &M) |
Assigns the element wise convex hull of the sparse slice and M to the slice. | |
simatrix_slice & | operator|= (const rmatrix &M) |
Assigns the element wise convex hull of the sparse slice and M to the slice. | |
simatrix_slice & | operator|= (const imatrix &M) |
Assigns the element wise convex hull of the sparse slice and M to the slice. | |
simatrix_slice & | operator|= (const rmatrix_slice &M) |
Assigns the element wise convex hull of the sparse slice and M to the slice. | |
simatrix_slice & | operator|= (const imatrix_slice &M) |
Assigns the element wise convex hull of the sparse slice and M to the slice. | |
Friends | |
simatrix | abs (const simatrix_slice &) |
Returns the elementwise absolute value of S. | |
int | ColLen (const simatrix_slice &) |
Returns the number of rows of the matrix slice. | |
srmatrix | diam (const simatrix_slice &) |
Returns the elementwise diameter of S. | |
srmatrix | Inf (const simatrix_slice &) |
Returns the infimum of the slice S. | |
int | Lb (const simatrix_slice &, const int) |
Returns the lower index bound of the rows (if i==ROW) or columns (if i==COL) of the slice. | |
srmatrix | mid (const simatrix_slice &) |
Returns the elementwise midpoint of S. | |
std::ostream & | operator<< (std::ostream &, const simatrix_slice &) |
Standard output operator for sparse matrix slice. | |
int | RowLen (const simatrix_slice &) |
Returns the number columns of the matrix slice. | |
srmatrix | Sup (const simatrix_slice &) |
Returns the supremum of the slice S. | |
int | Ub (const simatrix_slice &, const int) |
Returns the upper index bound of the rows (if i==ROW) or columns (if i==COL) of the slice. |
A slice of a sparse real interval matrix.
Represents a slice of a sparse real interval matrix. This helper class provides read and write access to such a slice using the standard operators. It should normally not be necessary for the user to explicitly work with this data type, which is why the constructors are private.
Definition at line 2431 of file simatrix.hpp.
interval& cxsc::simatrix_slice::element | ( | const int | i, |
const int | j | ||
) | [inline] |
Returns a reference to the element (i,j) of the matrix.
Returns a reference to the (i,j)-th element. If the element is not explicitly stored, it is added as an explicit zero entry to the data structure. Using this function is faster than using A[i][j], since no temporary subvecto object must be created.
Definition at line 2782 of file simatrix.hpp.
Referenced by cxsc::simatrix_subv::operator[]().
const interval cxsc::simatrix_slice::operator() | ( | const int | i, |
const int | j | ||
) | const [inline] |
Returns a copy of the element (i,j) of the matrix.
This operators can only be usd for read access. Note that accessing single elements of a sparse matrix is more expensive than for dense matrices and should in general be avoided.
Definition at line 2768 of file simatrix.hpp.
std::ostream& operator<< | ( | std::ostream & | os, |
const simatrix_slice & | M | ||
) | [friend] |
Standard output operator for sparse matrix slice.
The output format is set by global flags, default is dense output. Use cout << SparseInOut; for sparse output or cout << MatrixMarketInOut; for output in matrix market format.
Definition at line 4359 of file simatrix.hpp.