Skip to content

Commit

Permalink
minor edit for sparse (layout and proper swap def) (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
aartbik authored Jan 15, 2025
1 parent b7474c1 commit 7e290d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/matx/core/tensor_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ struct DenseTensorData {
using dense_data = bool;
T *ldata_;
};
template <typename T, typename CRD, typename POS, int Lvl>

template <typename T, typename CRD, typename POS, int L>
struct SparseTensorData {
using sparse_data = bool;
using crd_type = CRD;
using pos_type = POS;
static constexpr int LVL = Lvl;

static constexpr int LVL = L;
T *ldata_;
CRD *crd_[LVL];
POS *pos_[LVL];
Expand Down Expand Up @@ -121,7 +121,7 @@ class tensor_impl_t {
* @param rhs
* Right argument
*/
friend void swap(tensor_impl_t<T, RANK, Desc> &lhs, tensor_impl_t<T, RANK, Desc> &rhs) noexcept
friend void swap(self_type &lhs, self_type &rhs) noexcept
{
using std::swap;

Expand Down

0 comments on commit 7e290d6

Please sign in to comment.