Skip to content

Commit

Permalink
Merge pull request #19 from florian-huber/remove_deprecated_scipy_fun…
Browse files Browse the repository at this point in the history
…ction

Update StackedSparseArray.py
  • Loading branch information
florian-huber authored Jul 1, 2024
2 parents f413b9e + a701c1e commit af703c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sparsestack/StackedSparseArray.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# -*- coding: utf-8 -*-
import numpy as np
from scipy.sparse import coo_matrix
from scipy.sparse.sputils import get_index_dtype
from .utils import join_arrays


_slicing_not_implemented_msg = "Wrong slicing, or option not yet implemented"


def get_index_dtype(maxval):
if maxval <= np.iinfo(np.int32).max:
return np.int32
return np.int64


class StackedSparseArray:
""" 2.5D sparse matrix in COO-style with multiple possible entries per i-j-position.
Expand Down

0 comments on commit af703c8

Please sign in to comment.