|
| | XxMatrix () |
| | Default constructor.
|
| | XxMatrix (T_Int nr, T_Int nc, T_Int nz, const Property &pr=Property::General()) |
| | Dimension constructor.
|
| | XxMatrix (T_Int nr, T_Int nc, T_Int *cptr, T_Int *ridx, T_Scalar *vals, bool bind, const Property &pr=Property::General()) |
| | Auxiliary constructor.
|
| | XxMatrix (const XxMatrix< T_Int, T_Scalar > &other) |
| | Copy constructor.
|
| | XxMatrix (XxMatrix< T_Int, T_Scalar > &&other) |
| | Move constructor.
|
| | ~XxMatrix () |
| | Destructor.
|
| XxMatrix< T_Int, T_Scalar > & | operator= (const XxMatrix< T_Int, T_Scalar > &other) |
| | Copy assignment operator.
|
| XxMatrix< T_Int, T_Scalar > & | operator= (XxMatrix< T_Int, T_Scalar > &&other) |
| | Move assignment operator.
|
| alias::VirtualScal_csc< T_Int, T_Scalar > | operator- () const |
| | Unary negation operator.
|
| T_Int * | colptr () |
| | Access the column pointer array.
|
| const T_Int * | colptr () const |
| | Access the column pointer array.
|
| T_Int * | rowidx () |
| | Access the row index array.
|
| const T_Int * | rowidx () const |
| | Access the row index array.
|
| T_Int | nnz () const |
| | Get the number of non-zero elements.
|
| void | clear () |
| | Clear the sparse matrix.
|
| std::string | info (const std::string &header="") const |
| | Get information about the sparse matrix.
|
| XxMatrix< T_Int, T_Scalar > | copy () const |
| | Create a deep copy of the sparse matrix.
|
| XxMatrix< T_Int, T_Scalar > | rcopy () |
| | Create a reference copy (shallow copy) of the sparse matrix.
|
| Guard< XxMatrix< T_Int, T_Scalar > > | rcopy () const |
| | Create a guarded reference copy (shallow copy) of the sparse matrix.
|
| XxMatrix< T_Int, T_Scalar > | move () |
| | Move the sparse matrix's resources.
|
| void | toStream (std::ostream &os, std::streamsize prec=0) const |
| | Output the sparse matrix to a stream.
|
| void | iscale (T_Scalar val) |
| | Scale the sparse matrix in-place.
|
| alias::VirtualTrans_csc< T_Int, T_Scalar > | transpose () const |
| | Transpose the sparse matrix.
|
| alias::VirtualTrans_csc< T_Int, T_Scalar > | ctranspose () const |
| | Conjugate transpose the sparse matrix.
|
| alias::VirtualConj_csc< T_Int, T_Scalar > | conjugate () const |
| | Compute the complex conjugate.
|
| void | iconjugate () |
| | Conjugate the sparse matrix in-place.
|
| T_RScalar | normOne () const |
| | Compute the 1-norm.
|
| T_RScalar | normInf () const |
| | Compute the infinity norm.
|
| T_RScalar | normMax () const |
| | Compute the maximum norm.
|
| T_RScalar | normFro () const |
| | Compute the Frobenius norm.
|
| XxMatrix< T_Int, T_Scalar > | general () const |
| | Convert to general sparse matrix.
|
| dns::XxMatrix< T_Scalar > | toDns () const |
| | Convert to dense matrix format.
|
| XxMatrix< T_Int, T_Scalar > | permuteLeftRight (const prm::PxMatrix< T_Int > &P, const prm::PxMatrix< T_Int > &Q) const |
| | Permute rows and columns.
|
| XxMatrix< T_Int, T_Scalar > | permuteLeft (const prm::PxMatrix< T_Int > &P) const |
| | Permute rows.
|
| XxMatrix< T_Int, T_Scalar > | permuteRight (const prm::PxMatrix< T_Int > &Q) const |
| | Permute columns.
|
| XxMatrix< T_Int, T_Scalar > | permuteMirror (const prm::PxMatrix< T_Int > &P) const |
| | Permute rows and columns symmetrically.
|
| XxMatrix< T_Int, T_Scalar > | block (T_Int ibgn, T_Int jbgn, T_Int ni, T_Int nj) const |
| | Extract a block as a new sparse matrix.
|
| const Property & | prop () const |
| | Matrix property accessor.
|
| virtual T_Int | nrows () const |
| | Number of rows.
|
| virtual T_Int | ncols () const |
| | Number of columns.
|
| bool | empty () const |
| | Tests whether the object has zero dimensions.
|
| | operator bool () const |
| | Boolean conversion operator.
|
| T_Scalar * | values () |
| | Access the data buffer.
|
| const T_Scalar * | values () const |
| | Access the data buffer.
|
| | Ownership () |
| | Default constructor.
|
| | Ownership (bool owner) |
| | Ownership constructor.
|
| | ~Ownership () |
| | Destructor.
|
| bool | owner () const |
| | Tests memory ownership.
|
| void | unbind () |
| | Relinquishes memory ownership.
|
| static XxMatrix< T_Int, T_Scalar > | random (T_Int nr, T_Int nc, T_Int nz, const Property &pr=Property::General(), T_RScalar lo=T_RScalar(0), T_RScalar hi=T_RScalar(1)) |
| | Create a random sparse matrix.
|
| static Guard< XxMatrix< T_Int, T_Scalar > > | view (T_Int nr, T_Int nc, const T_Int *cptr, const T_Int *ridx, const T_Scalar *vals, const Property &pr=Property::General()) |
| | Create a view of existing CSC arrays.
|
template<typename T_Int, typename T_Scalar>
class cla3p::csc::CxMatrix< T_Int, T_Scalar >
The sparse complex matrix class (compressed sparse column format).
Represents a sparse complex-valued matrix in compressed sparse column (CSC) format.
- Template Parameters
-
| T_Int | The integer type for indices. |
| T_Scalar | The complex scalar type (e.g., std::complex<float>, std::complex<double>). |