Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions include/matx/core/sparse_tensor_format.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ template <LvlOp o, int d, int c> class LvlExpr {
return "d" + std::to_string(di) + " div " + std::to_string(cj);
} else if constexpr (op == LvlOp::Mod) {
return "d" + std::to_string(di) + " mod " + std::to_string(cj);
}
} else { // Should not happen
return "";
}
}
};

Expand All @@ -179,7 +181,9 @@ template <typename Expr, LvlType ltype> class LvlSpec {
return "compressed";
} else if constexpr (ltype == LvlType::CompressedNonUnique) {
return "compressed(non-unique)";
}
} else { // Should not happen
return "";
}
}
};

Expand Down
3 changes: 3 additions & 0 deletions include/matx/core/type_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,9 @@ constexpr cusparseIndexType_t MatXTypeToCuSparseIndexType() {
if constexpr (std::is_same_v<T, index_t>) {
return CUSPARSE_INDEX_64I;
}
else { // Should not happen
return CUSPARSE_INDEX_32I;
}
}

} // end namespace detail
Expand Down