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
27 changes: 26 additions & 1 deletion spacecore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,23 @@
from .backend import TorchOps as TorchOps
except ImportError:
pass
from .linop import DenseLinOp, SparseLinOp, BlockDiagonalLinOp, SumToSingleLinOp, StackedLinOp, LinOp
from .linop import (
BlockDiagonalLinOp,
ComposedLinOp,
DenseLinOp,
IdentityLinOp,
LinOp,
MatrixFreeLinOp,
ScaledLinOp,
SparseLinOp,
StackedLinOp,
SumLinOp,
SumToSingleLinOp,
ZeroLinOp,
make_composed,
make_scaled,
make_sum,
)
from .space import (
BackendCheck,
DTypeCheck,
Expand Down Expand Up @@ -42,8 +58,17 @@
"NumpyOps",

"LinOp",
"ComposedLinOp",
"DenseLinOp",
"IdentityLinOp",
"MatrixFreeLinOp",
"ScaledLinOp",
"SparseLinOp",
"SumLinOp",
"ZeroLinOp",
"make_composed",
"make_scaled",
"make_sum",
"BlockDiagonalLinOp",
"SumToSingleLinOp",
"StackedLinOp",
Expand Down
20 changes: 20 additions & 0 deletions spacecore/linop/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
from ._base import LinOp
from ._algebra import (
ComposedLinOp,
IdentityLinOp,
MatrixFreeLinOp,
ScaledLinOp,
SumLinOp,
ZeroLinOp,
make_composed,
make_scaled,
make_sum,
)
from ._dense import DenseLinOp
from ._sparse import SparseLinOp
from .product import ProductLinOp, StackedLinOp, SumToSingleLinOp, BlockDiagonalLinOp

__all__ = [
"LinOp",
"ComposedLinOp",
"DenseLinOp",
"IdentityLinOp",
"MatrixFreeLinOp",
"ScaledLinOp",
"SparseLinOp",
"SumLinOp",
"ZeroLinOp",
"make_composed",
"make_scaled",
"make_sum",
"ProductLinOp",
"SumToSingleLinOp",
"BlockDiagonalLinOp",
Expand Down
Loading
Loading