|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Lightweight CSC (Compressed Sparse Column) representation. More...
#include <csc.hpp>
Public Member Functions | |
| SizeType | nnz () const |
| Value | operator() (SizeType r, SizeType c) const |
| Read-only access: binary search within column c for row r. | |
Public Attributes | |
| SizeType | nrows |
| SizeType | ncols |
| std::vector< SizeType > | col_ptr |
| std::vector< SizeType > | row_ind |
| std::vector< Value > | values |
Lightweight CSC (Compressed Sparse Column) representation.
Owns its data. Column-oriented storage for sparse direct solvers.
|
inline |
|
inline |
Read-only access: binary search within column c for row r.
Returns zero if element is absent.
| std::vector<SizeType> mtl::sparse::util::csc_matrix< Value, SizeType >::col_ptr |
| SizeType mtl::sparse::util::csc_matrix< Value, SizeType >::ncols |
| SizeType mtl::sparse::util::csc_matrix< Value, SizeType >::nrows |
| std::vector<SizeType> mtl::sparse::util::csc_matrix< Value, SizeType >::row_ind |
| std::vector<Value> mtl::sparse::util::csc_matrix< Value, SizeType >::values |