forked from inaos/iron-array-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
55 lines (46 loc) · 1.62 KB
/
Copy path__init__.py
File metadata and controls
55 lines (46 loc) · 1.62 KB
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
55
from llvmlite import binding
import platform
binding.initialize()
binding.initialize_native_target()
binding.initialize_native_asmprinter()
platform_system = platform.system()
if platform_system == 'Linux':
binding.load_library_permanently("libsvml.so")
elif platform_system == 'Darwin':
binding.load_library_permanently("libsvml.dylib")
else:
binding.load_library_permanently("svml_dispmd.dll")
# Probably needed by py2llvm
binding.set_option('', '-vector-library=SVML')
# Codecs
BLOSCLZ = 0
LZ4 = 1
LZ4HC = 2
ZLIB = 4
ZSTD = 5
LIZARD = 6
# Filters
NOFILTER = 0
SHUFFLE = 1
BITSHUFFLE = 2
DELTA = 3
TRUNC_PREC = 4
# Storage types
PLAINBUFFER_STORAGE = 'plainbuffer'
BLOSC_STORAGE = 'blosc'
from . import iarray_ext as ext
from .high_level import (IArray, dtshape, StorageProperties, EvalFlags, Config, RandomContext, Expr, LazyExpr,
empty, arange, linspace, zeros, ones, full, load, save,
cmp_arrays, iarray2numpy, numpy2iarray, matmul,
# random constructors
random_rand, random_randn, random_beta, random_lognormal, random_exponential,
random_uniform, random_normal, random_bernoulli, random_binomial, random_poisson,
random_kstest,
# ufuncs
abs, arccos, arcsin, arctan, arctan2, ceil, cos, cosh,
exp, floor, log, log10, negative, power, sin, sinh,
sqrt, tan, tanh,
)
from .expression import Parser
from .version import version as __version__
ext.IArrayInit()