File: __init__.py

package info (click to toggle)
python-sparse 0.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,816 kB
  • sloc: python: 11,223; sh: 54; javascript: 10; makefile: 8
file content (54 lines) | stat: -rw-r--r-- 938 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
try:
    import mlir_finch  # noqa: F401

    del mlir_finch
except ModuleNotFoundError as e:
    raise ImportError(
        "MLIR Python bindings not installed. Run `pip install finch-mlir` to enable the MLIR backend."
    ) from e

from . import formats
from ._array import Array
from ._conversions import asarray, from_constituent_arrays, to_numpy, to_scipy
from ._dtypes import (
    asdtype,
    complex64,
    complex128,
    float16,
    float32,
    float64,
    int8,
    int16,
    int32,
    int64,
    uint8,
    uint16,
    uint32,
    uint64,
)
from ._ops import add, reshape

__all__ = [
    "Array",
    "add",
    "asarray",
    "asdtype",
    "to_numpy",
    "to_scipy",
    "formats",
    "reshape",
    "from_constituent_arrays",
    "int8",
    "int16",
    "int32",
    "int64",
    "uint8",
    "uint16",
    "uint32",
    "uint64",
    "float16",
    "float32",
    "float64",
    "complex64",
    "complex128",
]