|
49 | 49 | """
|
50 | 50 |
|
51 | 51 | from .algorithm import (
|
52 |
| - accum, all_true, allTrueByKey, any_true, anyTrueByKey, count, countByKey, diff1, diff2, imax, imin, max, maxByKey, min, minByKey, product, productByKey, scan, scan_by_key, set_intersect, |
53 |
| - set_union, set_unique, sort, sort_by_key, sort_index, sum, sumByKey, where) |
| 52 | + accum, all_true, allTrueByKey, any_true, anyTrueByKey, count, countByKey, diff1, diff2, imax, imin, max, maxByKey, |
| 53 | + min, minByKey, product, productByKey, scan, scan_by_key, set_intersect, set_union, set_unique, sort, sort_by_key, |
| 54 | + sort_index, sum, sumByKey, where) |
54 | 55 | from .arith import (
|
55 |
| - abs, acos, acosh, arg, asin, asinh, atan, atan2, atanh, cast, cbrt, ceil, clamp, conjg, cos, cosh, cplx, erf, erfc, exp, |
56 |
| - expm1, factorial, floor, hypot, imag, isinf, isnan, iszero, lgamma, log, log1p, log2, log10, maxof, minof, |
| 56 | + abs, acos, acosh, arg, asin, asinh, atan, atan2, atanh, cast, cbrt, ceil, clamp, conjg, cos, cosh, cplx, erf, erfc, |
| 57 | + exp, expm1, factorial, floor, hypot, imag, isinf, isnan, iszero, lgamma, log, log1p, log2, log10, maxof, minof, |
57 | 58 | mod, pow,
|
58 | 59 | pow2, real, rem, root, round, rsqrt, sigmoid, sign, sin, sinh, sqrt, tan, tanh, tgamma, trunc)
|
59 | 60 | from .array import (
|
|
64 | 65 | from .blas import dot, matmul, matmulNT, matmulTN, matmulTT, gemm
|
65 | 66 | from .cuda import get_native_id, get_stream, set_native_id
|
66 | 67 | from .data import (
|
67 |
| - constant, diag, flat, flip, identity, iota, join, lookup, lower, moddims, pad, range, reorder, replace, select, shift, |
68 |
| - tile, upper) |
| 68 | + constant, diag, flat, flip, identity, iota, join, lookup, lower, moddims, pad, range, reorder, replace, select, |
| 69 | + shift, tile, upper) |
69 | 70 | from .library import (
|
70 |
| - BACKEND, BINARYOP, CANNY_THRESHOLD, COLORMAP, CONNECTIVITY, CONV_DOMAIN, CONV_GRADIENT, CONV_MODE, CSPACE, DIFFUSION, ERR, FLUX, |
71 |
| - HOMOGRAPHY, IMAGE_FORMAT, INTERP, ITERATIVE_DECONV, INVERSE_DECONV, MARKER, MATCH, MATPROP, MOMENT, NORM, PAD, RANDOM_ENGINE, STORAGE, TOPK, VARIANCE, YCC_STD, Dtype, Source, AF_VER_MAJOR, FORGE_VER_MAJOR) |
| 71 | + BACKEND, BINARYOP, CANNY_THRESHOLD, COLORMAP, CONNECTIVITY, CONV_DOMAIN, CONV_GRADIENT, CONV_MODE, CSPACE, |
| 72 | + DIFFUSION, ERR, FLUX, HOMOGRAPHY, IMAGE_FORMAT, INTERP, ITERATIVE_DECONV, INVERSE_DECONV, MARKER, MATCH, MATPROP, |
| 73 | + MOMENT, NORM, PAD, RANDOM_ENGINE, STORAGE, TOPK, VARIANCE, YCC_STD, Dtype, Source, AF_VER_MAJOR, FORGE_VER_MAJOR) |
72 | 74 | from .device import (
|
73 | 75 | alloc_device, alloc_host, alloc_pinned, device_gc, device_info, device_mem_info, eval, free_device, free_host,
|
74 | 76 | free_pinned, get_device, get_device_count, get_device_ptr, get_manual_eval_flag, info,
|
75 |
| - info_str, init, is_dbl_supported, is_half_supported, is_locked_array, lock_array, lock_device_ptr, print_mem_info, set_device, |
76 |
| - set_manual_eval_flag, sync, unlock_array, unlock_device_ptr) |
| 77 | + info_str, init, is_dbl_supported, is_half_supported, is_locked_array, lock_array, lock_device_ptr, print_mem_info, |
| 78 | + set_device, set_manual_eval_flag, sync, unlock_array, unlock_device_ptr) |
77 | 79 | from .graphics import Window
|
78 | 80 | from .image import (
|
79 |
| - anisotropic_diffusion, bilateral, canny, color_space, confidenceCC, dilate, dilate3, erode, erode3, gaussian_kernel, gradient, |
80 |
| - gray2rgb, hist_equal, histogram, hsv2rgb, is_image_io_available, iterativeDeconv, inverseDeconv, load_image, load_image_native, maxfilt, |
81 |
| - mean_shift, minfilt, moments, regions, resize, rgb2gray, rgb2hsv, rgb2ycbcr, rotate, sat, save_image, |
82 |
| - save_image_native, scale, skew, sobel_derivatives, sobel_filter, transform, translate, unwrap, wrap, ycbcr2rgb) |
| 81 | + anisotropic_diffusion, bilateral, canny, color_space, confidenceCC, dilate, dilate3, erode, erode3, |
| 82 | + gaussian_kernel, gradient, gray2rgb, hist_equal, histogram, hsv2rgb, is_image_io_available, iterativeDeconv, |
| 83 | + inverseDeconv, load_image, load_image_native, maxfilt, mean_shift, minfilt, moments, regions, resize, rgb2gray, |
| 84 | + rgb2hsv, rgb2ycbcr, rotate, sat, save_image, save_image_native, scale, skew, sobel_derivatives, sobel_filter, |
| 85 | + transform, translate, unwrap, wrap, ycbcr2rgb) |
83 | 86 | from .index import Index, ParallelRange, Seq
|
84 | 87 | from .interop import AF_NUMBA_FOUND, AF_NUMPY_FOUND, AF_PYCUDA_FOUND, AF_PYOPENCL_FOUND, to_array
|
85 | 88 | from .lapack import (
|
86 |
| - cholesky, cholesky_inplace, det, inverse, is_lapack_available, lu, lu_inplace, norm, pinverse, qr, qr_inplace, rank, solve, |
87 |
| - solve_lu, svd, svd_inplace) |
| 89 | + cholesky, cholesky_inplace, det, inverse, is_lapack_available, lu, lu_inplace, norm, pinverse, qr, qr_inplace, |
| 90 | + rank, solve, solve_lu, svd, svd_inplace) |
88 | 91 | from .library import (
|
89 | 92 | get_active_backend, get_available_backends, get_backend, get_backend_count, get_backend_id, get_device_id,
|
90 |
| - get_size_of, safe_call, set_backend) |
| 93 | + get_size_of, safe_call, set_backend, to_str) |
91 | 94 | from .ml import convolve2GradientNN
|
92 | 95 | from .random import (
|
93 | 96 | Random_Engine, get_default_random_engine, get_seed, randn, randu, set_default_random_engine_type,
|
94 | 97 | set_seed)
|
95 | 98 | from .signal import (
|
96 |
| - approx1, approx1_uniform, approx2, approx2_uniform, convolve, convolve1, convolve2, convolve2NN, convolve2_separable, convolve3, dft, fft, fft2, fft2_c2r, |
97 |
| - fft2_inplace, fft2_r2c, fft3, fft3_c2r, fft3_inplace, fft3_r2c, fft_c2r, fft_convolve, fft_convolve1, |
98 |
| - fft_convolve2, fft_convolve3, fft_inplace, fft_r2c, fir, idft, ifft, ifft2, ifft2_inplace, ifft3, ifft3_inplace, |
99 |
| - ifft_inplace, iir, medfilt, medfilt1, medfilt2, set_fft_plan_cache_size) |
| 99 | + approx1, approx1_uniform, approx2, approx2_uniform, convolve, convolve1, convolve2, convolve2NN, |
| 100 | + convolve2_separable, convolve3, dft, fft, fft2, fft2_c2r, fft2_inplace, fft2_r2c, fft3, fft3_c2r, fft3_inplace, |
| 101 | + fft3_r2c, fft_c2r, fft_convolve, fft_convolve1, fft_convolve2, fft_convolve3, fft_inplace, fft_r2c, fir, idft, |
| 102 | + ifft, ifft2, ifft2_inplace, ifft3, ifft3_inplace, ifft_inplace, iir, medfilt, medfilt1, medfilt2, |
| 103 | + set_fft_plan_cache_size) |
100 | 104 | from .sparse import (
|
101 | 105 | convert_sparse, convert_sparse_to_dense, create_sparse, create_sparse_from_dense, create_sparse_from_host,
|
102 | 106 | sparse_get_col_idx, sparse_get_info, sparse_get_nnz, sparse_get_row_idx, sparse_get_storage, sparse_get_values)
|
103 | 107 | from .statistics import corrcoef, cov, mean, meanvar, median, stdev, topk, var
|
104 | 108 | from .timer import timeit
|
105 |
| -from .util import dim4, dim4_to_tuple, implicit_dtype, number_dtype, to_str, get_reversion, get_version, to_dtype, to_typecode, to_c_type |
| 109 | +from .util import ( |
| 110 | + dim4, dim4_to_tuple, implicit_dtype, number_dtype, get_reversion, get_version, to_dtype, to_typecode, |
| 111 | + to_c_type) |
106 | 112 |
|
107 | 113 | try:
|
108 | 114 | # FIXME: pycuda imported but unused
|
|
133 | 139 | "broadcast",
|
134 | 140 | # blas
|
135 | 141 | "dot", "matmul", "matmulNT", "matmulTN", "matmulTT", "gemm",
|
136 |
| - #cuda |
| 142 | + # cuda |
137 | 143 | "get_native_id", "get_stream", "set_native_id",
|
138 | 144 | # data
|
139 | 145 | "constant", "diag", "flat", "flip", "identity", "iota", "join", "lookup",
|
|
169 | 175 | "norm", "pinverse", "qr", "qr_inplace", "rank", "solve", "solve_lu", "svd", "svd_inplace",
|
170 | 176 | # library
|
171 | 177 | "get_active_backend", "get_available_backends", "get_backend", "get_backend_count",
|
172 |
| - "get_backend_id", "get_device_id", "get_size_of", "safe_call", "set_backend", |
| 178 | + "get_backend_id", "get_device_id", "get_size_of", "safe_call", "set_backend", "to_str", |
173 | 179 | # ml
|
174 | 180 | "convolve2GradientNN",
|
175 | 181 | # random
|
|
192 | 198 | # timer
|
193 | 199 | "timeit",
|
194 | 200 | # util
|
195 |
| - "dim4", "dim4_to_tuple", "implicit_dtype", "number_dtype", "to_str", "get_reversion", |
| 201 | + "dim4", "dim4_to_tuple", "implicit_dtype", "number_dtype", "get_reversion", |
196 | 202 | "get_version", "to_dtype", "to_typecode", "to_c_type"
|
197 | 203 | ]
|
0 commit comments