MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
csc.hpp File Reference
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <vector>
#include <mtl/mat/compressed2D.hpp>
#include <mtl/math/identity.hpp>

Classes

struct  mtl::sparse::util::csc_matrix< Value, SizeType >
 Lightweight CSC (Compressed Sparse Column) representation. More...

Namespaces

namespace  mtl
namespace  mtl::sparse
namespace  mtl::sparse::util

Functions

template<typename Value, typename Parameters>
csc_matrix< Value, typename mat::compressed2D< Value, Parameters >::size_type > mtl::sparse::util::csr_to_csc (const mat::compressed2D< Value, Parameters > &A)
 Convert a CSR compressed2D matrix to CSC format.
template<typename Value, typename SizeType>
mat::compressed2D< Value > mtl::sparse::util::csc_to_csr (const csc_matrix< Value, SizeType > &csc)
 Convert a CSC matrix back to CSR compressed2D format.
template<typename Value, typename Parameters>
csc_matrix< Value, typename mat::compressed2D< Value, Parameters >::size_type > mtl::sparse::util::crs_to_csc (const mat::compressed2D< Value, Parameters > &A)
 Deprecated name of csr_to_csc (#1006: MTL5 writes CSR and CSC, not CRS).
template<typename Value, typename SizeType>
mat::compressed2D< Value > mtl::sparse::util::csc_to_crs (const csc_matrix< Value, SizeType > &csc)
 Deprecated name of csc_to_csr (#1006).
template<typename Value, typename SizeType>
csc_matrix< Value, SizeType > mtl::sparse::util::transpose_csc (const csc_matrix< Value, SizeType > &A)
 Compute the transpose of a CSC matrix (returns CSC).