SparsityParams
#include <popsparse/SparsityParams.hpp>
Parameters used for sparse tensors.
-
namespace popsparse
Support for sparse matrices.
-
namespace dynamic
Support for dynamic sparse matrices.
Enums
Functions
-
std::ostream &operator<<(std::ostream &os, const SparsityType &t)
-
std::ostream &operator<<(std::ostream &os, const SparsityStructure &s)
-
struct SparsityParams
Public Functions
-
inline SparsityParams(SparsityType type_ = SparsityType::Element, SparsityStructure structure_ = SparsityStructure::Unstructured, std::array<std::size_t, 2> blockDimensions_ = {1, 1})
-
SparsityParams(const SparsityParams&) = default
Friends
-
friend bool operator<(const SparsityParams &a, const SparsityParams &b)
-
friend bool operator==(const SparsityParams &a, const SparsityParams &b)
-
friend bool operator!=(const SparsityParams &a, const SparsityParams &b)
-
friend std::ostream &operator<<(std::ostream &os, const SparsityParams &p)
-
inline SparsityParams(SparsityType type_ = SparsityType::Element, SparsityStructure structure_ = SparsityStructure::Unstructured, std::array<std::size_t, 2> blockDimensions_ = {1, 1})
-
std::ostream &operator<<(std::ostream &os, const SparsityType &t)
-
namespace dynamic