Skip to content

Commit

Permalink
Add a backward-compatible fix for modules math._linalg and `math._s…
Browse files Browse the repository at this point in the history
…pecial`

they are now located in `math.linalg` and `math.special`
  • Loading branch information
adtzlr committed Mar 4, 2024
1 parent 170c26a commit f5f3275
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tensortrax/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
tensorTRAX: Math on (Hyper-Dual) Tensors with Trailing Axes.
"""

__version__ = "0.18.0"
__version__ = "0.18.1"
3 changes: 3 additions & 0 deletions src/tensortrax/math/_linalg.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .linalg import _det, _inv, _pinv, det, eigh, eigvalsh, expm, inv, pinv

Check warning on line 1 in src/tensortrax/math/_linalg.py

View check run for this annotation

Codecov / codecov/patch

src/tensortrax/math/_linalg.py#L1

Added line #L1 was not covered by tests

__all__ = ["_det", "_inv", "_pinv", "det", "eigh", "eigvalsh", "expm", "inv", "pinv"]

Check warning on line 3 in src/tensortrax/math/_linalg.py

View check run for this annotation

Codecov / codecov/patch

src/tensortrax/math/_linalg.py#L3

Added line #L3 was not covered by tests
21 changes: 21 additions & 0 deletions src/tensortrax/math/_special.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from .special import (

Check warning on line 1 in src/tensortrax/math/_special.py

View check run for this annotation

Codecov / codecov/patch

src/tensortrax/math/_special.py#L1

Added line #L1 was not covered by tests
ddot,
dev,
from_triu_1d,
from_triu_2d,
sym,
tresca,
triu_1d,
von_mises,
)

__all__ = [

Check warning on line 12 in src/tensortrax/math/_special.py

View check run for this annotation

Codecov / codecov/patch

src/tensortrax/math/_special.py#L12

Added line #L12 was not covered by tests
"ddot",
"dev",
"from_triu_1d",
"from_triu_2d",
"sym",
"tresca",
"triu_1d",
"von_mises",
]

0 comments on commit f5f3275

Please sign in to comment.