eckit::linalg::SparseMatrix::Shape struct

Constructors, destructors, conversion operators

Shape() defaulted

Public functions

void reset()
auto rows() const -> Size
auto cols() const -> Size
auto nonZeros() const -> Size
auto dataSize() const -> Size
auto innerSize() const -> Size
auto outerSize() const -> Size
auto allocSize() const -> size_t
auto sizeofData() const -> size_t
auto sizeofOuter() const -> size_t
auto sizeofInner() const -> size_t
void print(std::ostream&) const

Public variables

Size size_
Size of the container (AKA number of non-zeros nnz)
Size rows_
Number of rows.
Size cols_
Number of columns.

Friends

auto operator<<(std::ostream& os, const Shape& p) -> std::ostream&

Function documentation

Size eckit::linalg::SparseMatrix::Shape::rows() const

Returns number of rows

Size eckit::linalg::SparseMatrix::Shape::cols() const

Returns number of columns

Size eckit::linalg::SparseMatrix::Shape::nonZeros() const

Returns number of non-zeros

Size eckit::linalg::SparseMatrix::Shape::dataSize() const

Returns number of non-zeros

Size eckit::linalg::SparseMatrix::Shape::innerSize() const

Returns number of non-zeros

Size eckit::linalg::SparseMatrix::Shape::outerSize() const

Returns outer size is number of rows + 1
This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.