Skip to content

Commit

Permalink
remove out-dated function
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Jun 26, 2024
1 parent 0bd4705 commit 901b19a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions elastica/_calculus.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
__doc__ = """ Quadrature and difference kernels """
from typing import Union
import numpy as np
from numpy import zeros, empty
from numpy.typing import NDArray
Expand All @@ -8,17 +7,6 @@
from elastica.reset_functions_for_block_structure._reset_ghost_vector_or_scalar import (
_reset_vector_ghost,
)
import functools


@functools.lru_cache(maxsize=2)
def _get_zero_array(dim: int, ndim: int) -> Union[float, NDArray[np.float64], None]:
if ndim == 1:
return 0.0
if ndim == 2:
return np.zeros((dim, 1))

return None


@njit(cache=True) # type: ignore
Expand Down

0 comments on commit 901b19a

Please sign in to comment.