repository_name
stringlengths
7
55
func_path_in_repository
stringlengths
4
223
func_name
stringlengths
1
134
whole_func_string
stringlengths
75
104k
language
stringclasses
1 value
func_code_string
stringlengths
75
104k
func_code_tokens
listlengths
19
28.4k
func_documentation_string
stringlengths
1
46.9k
func_documentation_tokens
listlengths
1
1.97k
split_name
stringclasses
1 value
func_code_url
stringlengths
87
315
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDgemv
def cublasDgemv(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for real general matrix. """ status = _libcublas.cublasDgemv_v2(handle, _CUBLAS_OP[trans], m, n, ctypes.byref(ctypes.c_do...
python
def cublasDgemv(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for real general matrix. """ status = _libcublas.cublasDgemv_v2(handle, _CUBLAS_OP[trans], m, n, ctypes.byref(ctypes.c_do...
[ "def", "cublasDgemv", "(", "handle", ",", "trans", ",", "m", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasDgemv_v2", "(", "handle", ","...
Matrix-vector product for real general matrix.
[ "Matrix", "-", "vector", "product", "for", "real", "general", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2279-L2291
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasCgemv
def cublasCgemv(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for complex general matrix. """ status = _libcublas.cublasCgemv_v2(handle, _CUBLAS_OP[trans], m, n, ctypes.byref(cuda.cuF...
python
def cublasCgemv(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for complex general matrix. """ status = _libcublas.cublasCgemv_v2(handle, _CUBLAS_OP[trans], m, n, ctypes.byref(cuda.cuF...
[ "def", "cublasCgemv", "(", "handle", ",", "trans", ",", "m", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasCgemv_v2", "(", "handle", ","...
Matrix-vector product for complex general matrix.
[ "Matrix", "-", "vector", "product", "for", "complex", "general", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2306-L2320
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZgemv
def cublasZgemv(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for complex general matrix. """ status = _libcublas.cublasZgemv_v2(handle, _CUBLAS_OP[trans], m, n, ctypes.byref(cuda.cuD...
python
def cublasZgemv(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for complex general matrix. """ status = _libcublas.cublasZgemv_v2(handle, _CUBLAS_OP[trans], m, n, ctypes.byref(cuda.cuD...
[ "def", "cublasZgemv", "(", "handle", ",", "trans", ",", "m", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasZgemv_v2", "(", "handle", ","...
Matrix-vector product for complex general matrix.
[ "Matrix", "-", "vector", "product", "for", "complex", "general", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2335-L2349
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSger
def cublasSger(handle, m, n, alpha, x, incx, y, incy, A, lda): """ Rank-1 operation on real general matrix. """ status = _libcublas.cublasSger_v2(handle, m, n, ctypes.byref(ctypes.c_float(alpha)), ...
python
def cublasSger(handle, m, n, alpha, x, incx, y, incy, A, lda): """ Rank-1 operation on real general matrix. """ status = _libcublas.cublasSger_v2(handle, m, n, ctypes.byref(ctypes.c_float(alpha)), ...
[ "def", "cublasSger", "(", "handle", ",", "m", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "y", ",", "incy", ",", "A", ",", "lda", ")", ":", "status", "=", "_libcublas", ".", "cublasSger_v2", "(", "handle", ",", "m", ",", "n", ",", "ctyp...
Rank-1 operation on real general matrix.
[ "Rank", "-", "1", "operation", "on", "real", "general", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2363-L2374
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDger
def cublasDger(handle, m, n, alpha, x, incx, y, incy, A, lda): """ Rank-1 operation on real general matrix. """ status = _libcublas.cublasDger_v2(handle, m, n, ctypes.byref(ctypes.c_double(alpha)), ...
python
def cublasDger(handle, m, n, alpha, x, incx, y, incy, A, lda): """ Rank-1 operation on real general matrix. """ status = _libcublas.cublasDger_v2(handle, m, n, ctypes.byref(ctypes.c_double(alpha)), ...
[ "def", "cublasDger", "(", "handle", ",", "m", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "y", ",", "incy", ",", "A", ",", "lda", ")", ":", "status", "=", "_libcublas", ".", "cublasDger_v2", "(", "handle", ",", "m", ",", "n", ",", "ctyp...
Rank-1 operation on real general matrix.
[ "Rank", "-", "1", "operation", "on", "real", "general", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2387-L2398
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasCgeru
def cublasCgeru(handle, m, n, alpha, x, incx, y, incy, A, lda): """ Rank-1 operation on complex general matrix. """ status = _libcublas.cublasCgeru_v2(handle, m, n, ctypes.byref(cuda.cuFloatComplex(alpha.real, ...
python
def cublasCgeru(handle, m, n, alpha, x, incx, y, incy, A, lda): """ Rank-1 operation on complex general matrix. """ status = _libcublas.cublasCgeru_v2(handle, m, n, ctypes.byref(cuda.cuFloatComplex(alpha.real, ...
[ "def", "cublasCgeru", "(", "handle", ",", "m", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "y", ",", "incy", ",", "A", ",", "lda", ")", ":", "status", "=", "_libcublas", ".", "cublasCgeru_v2", "(", "handle", ",", "m", ",", "n", ",", "ct...
Rank-1 operation on complex general matrix.
[ "Rank", "-", "1", "operation", "on", "complex", "general", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2434-L2444
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZgerc
def cublasZgerc(handle, m, n, alpha, x, incx, y, incy, A, lda): """ Rank-1 operation on complex general matrix. """ status = _libcublas.cublasZgerc_v2(handle, m, n, ctypes.byref(cuda.cuDoubleComplex(alpha.real, ...
python
def cublasZgerc(handle, m, n, alpha, x, incx, y, incy, A, lda): """ Rank-1 operation on complex general matrix. """ status = _libcublas.cublasZgerc_v2(handle, m, n, ctypes.byref(cuda.cuDoubleComplex(alpha.real, ...
[ "def", "cublasZgerc", "(", "handle", ",", "m", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "y", ",", "incy", ",", "A", ",", "lda", ")", ":", "status", "=", "_libcublas", ".", "cublasZgerc_v2", "(", "handle", ",", "m", ",", "n", ",", "ct...
Rank-1 operation on complex general matrix.
[ "Rank", "-", "1", "operation", "on", "complex", "general", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2457-L2467
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSsbmv
def cublasSsbmv(handle, uplo, n, k, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for real symmetric-banded matrix. """ status = _libcublas.cublasSsbmv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, k, ctypes.byr...
python
def cublasSsbmv(handle, uplo, n, k, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for real symmetric-banded matrix. """ status = _libcublas.cublasSsbmv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, k, ctypes.byr...
[ "def", "cublasSsbmv", "(", "handle", ",", "uplo", ",", "n", ",", "k", ",", "alpha", ",", "A", ",", "lda", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasSsbmv_v2", "(", "handle", ",",...
Matrix-vector product for real symmetric-banded matrix.
[ "Matrix", "-", "vector", "product", "for", "real", "symmetric", "-", "banded", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2507-L2519
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDsbmv
def cublasDsbmv(handle, uplo, n, k, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for real symmetric-banded matrix. """ status = _libcublas.cublasDsbmv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, k, ctypes.byr...
python
def cublasDsbmv(handle, uplo, n, k, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for real symmetric-banded matrix. """ status = _libcublas.cublasDsbmv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, k, ctypes.byr...
[ "def", "cublasDsbmv", "(", "handle", ",", "uplo", ",", "n", ",", "k", ",", "alpha", ",", "A", ",", "lda", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasDsbmv_v2", "(", "handle", ",",...
Matrix-vector product for real symmetric-banded matrix.
[ "Matrix", "-", "vector", "product", "for", "real", "symmetric", "-", "banded", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2534-L2546
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSspmv
def cublasSspmv(handle, uplo, n, alpha, AP, x, incx, beta, y, incy): """ Matrix-vector product for real symmetric-packed matrix. """ status = _libcublas.cublasSspmv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ...
python
def cublasSspmv(handle, uplo, n, alpha, AP, x, incx, beta, y, incy): """ Matrix-vector product for real symmetric-packed matrix. """ status = _libcublas.cublasSspmv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ...
[ "def", "cublasSspmv", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "AP", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasSspmv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "["...
Matrix-vector product for real symmetric-packed matrix.
[ "Matrix", "-", "vector", "product", "for", "real", "symmetric", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2560-L2576
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDspmv
def cublasDspmv(handle, uplo, n, alpha, AP, x, incx, beta, y, incy): """ Matrix-vector product for real symmetric-packed matrix. """ status = _libcublas.cublasDspmv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ...
python
def cublasDspmv(handle, uplo, n, alpha, AP, x, incx, beta, y, incy): """ Matrix-vector product for real symmetric-packed matrix. """ status = _libcublas.cublasDspmv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ...
[ "def", "cublasDspmv", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "AP", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasDspmv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "["...
Matrix-vector product for real symmetric-packed matrix.
[ "Matrix", "-", "vector", "product", "for", "real", "symmetric", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2589-L2605
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSspr
def cublasSspr(handle, uplo, n, alpha, x, incx, AP): """ Rank-1 operation on real symmetric-packed matrix. """ status = _libcublas.cublasSspr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, c...
python
def cublasSspr(handle, uplo, n, alpha, x, incx, AP): """ Rank-1 operation on real symmetric-packed matrix. """ status = _libcublas.cublasSspr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, c...
[ "def", "cublasSspr", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "AP", ")", ":", "status", "=", "_libcublas", ".", "cublasSspr_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "n", ",", "ctypes"...
Rank-1 operation on real symmetric-packed matrix.
[ "Rank", "-", "1", "operation", "on", "real", "symmetric", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2616-L2626
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDspr
def cublasDspr(handle, uplo, n, alpha, x, incx, AP): """ Rank-1 operation on real symmetric-packed matrix. """ status = _libcublas.cublasDspr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctype...
python
def cublasDspr(handle, uplo, n, alpha, x, incx, AP): """ Rank-1 operation on real symmetric-packed matrix. """ status = _libcublas.cublasDspr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctype...
[ "def", "cublasDspr", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "AP", ")", ":", "status", "=", "_libcublas", ".", "cublasDspr_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "n", ",", "ctypes"...
Rank-1 operation on real symmetric-packed matrix.
[ "Rank", "-", "1", "operation", "on", "real", "symmetric", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2637-L2647
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSspr2
def cublasSspr2(handle, uplo, n, alpha, x, incx, y, incy, AP): """ Rank-2 operation on real symmetric-packed matrix. """ status = _libcublas.cublasSspr2_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_float(al...
python
def cublasSspr2(handle, uplo, n, alpha, x, incx, y, incy, AP): """ Rank-2 operation on real symmetric-packed matrix. """ status = _libcublas.cublasSspr2_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_float(al...
[ "def", "cublasSspr2", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "y", ",", "incy", ",", "AP", ")", ":", "status", "=", "_libcublas", ".", "cublasSspr2_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]"...
Rank-2 operation on real symmetric-packed matrix.
[ "Rank", "-", "2", "operation", "on", "real", "symmetric", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2660-L2671
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDspr2
def cublasDspr2(handle, uplo, n, alpha, x, incx, y, incy, AP): """ Rank-2 operation on real symmetric-packed matrix. """ status = _libcublas.cublasDspr2_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_double(a...
python
def cublasDspr2(handle, uplo, n, alpha, x, incx, y, incy, AP): """ Rank-2 operation on real symmetric-packed matrix. """ status = _libcublas.cublasDspr2_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_double(a...
[ "def", "cublasDspr2", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "y", ",", "incy", ",", "AP", ")", ":", "status", "=", "_libcublas", ".", "cublasDspr2_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]"...
Rank-2 operation on real symmetric-packed matrix.
[ "Rank", "-", "2", "operation", "on", "real", "symmetric", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2683-L2693
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSsymv
def cublasSsymv(handle, uplo, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for real symmetric matrix. """ status = _libcublas.cublasSsymv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(...
python
def cublasSsymv(handle, uplo, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for real symmetric matrix. """ status = _libcublas.cublasSsymv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(...
[ "def", "cublasSsymv", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasSsymv_v2", "(", "handle", ",", "_CUBLAS_FI...
Matrix-vector product for real symmetric matrix.
[ "Matrix", "-", "vector", "product", "for", "real", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2708-L2720
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDsymv
def cublasDsymv(handle, uplo, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for real symmetric matrix. """ status = _libcublas.cublasDsymv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctyp...
python
def cublasDsymv(handle, uplo, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for real symmetric matrix. """ status = _libcublas.cublasDsymv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctyp...
[ "def", "cublasDsymv", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasDsymv_v2", "(", "handle", ",", "_CUBLAS_FI...
Matrix-vector product for real symmetric matrix.
[ "Matrix", "-", "vector", "product", "for", "real", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2734-L2746
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasCsymv
def cublasCsymv(handle, uplo, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for complex symmetric matrix. """ status = _libcublas.cublasCsymv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cud...
python
def cublasCsymv(handle, uplo, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for complex symmetric matrix. """ status = _libcublas.cublasCsymv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cud...
[ "def", "cublasCsymv", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasCsymv_v2", "(", "handle", ",", "_CUBLAS_FI...
Matrix-vector product for complex symmetric matrix.
[ "Matrix", "-", "vector", "product", "for", "complex", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2760-L2774
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZsymv
def cublasZsymv(handle, uplo, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for complex symmetric matrix. """ status = _libcublas.cublasZsymv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cud...
python
def cublasZsymv(handle, uplo, n, alpha, A, lda, x, incx, beta, y, incy): """ Matrix-vector product for complex symmetric matrix. """ status = _libcublas.cublasZsymv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cud...
[ "def", "cublasZsymv", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasZsymv_v2", "(", "handle", ",", "_CUBLAS_FI...
Matrix-vector product for complex symmetric matrix.
[ "Matrix", "-", "vector", "product", "for", "complex", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2788-L2802
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSsyr
def cublasSsyr(handle, uplo, n, alpha, x, incx, A, lda): """ Rank-1 operation on real symmetric matrix. """ status = _libcublas.cublasSsyr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_float(alpha)), ...
python
def cublasSsyr(handle, uplo, n, alpha, x, incx, A, lda): """ Rank-1 operation on real symmetric matrix. """ status = _libcublas.cublasSsyr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_float(alpha)), ...
[ "def", "cublasSsyr", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "A", ",", "lda", ")", ":", "status", "=", "_libcublas", ".", "cublasSsyr_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "n", ...
Rank-1 operation on real symmetric matrix.
[ "Rank", "-", "1", "operation", "on", "real", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2814-L2824
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDsyr
def cublasDsyr(handle, uplo, n, alpha, x, incx, A, lda): """ Rank-1 operation on real symmetric matrix. """ status = _libcublas.cublasDsyr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_double(alpha)), ...
python
def cublasDsyr(handle, uplo, n, alpha, x, incx, A, lda): """ Rank-1 operation on real symmetric matrix. """ status = _libcublas.cublasDsyr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_double(alpha)), ...
[ "def", "cublasDsyr", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "A", ",", "lda", ")", ":", "status", "=", "_libcublas", ".", "cublasDsyr_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "n", ...
Rank-1 operation on real symmetric matrix.
[ "Rank", "-", "1", "operation", "on", "real", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2835-L2845
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasCsyr
def cublasCsyr(handle, uplo, n, alpha, x, incx, A, lda): """ Rank-1 operation on complex symmetric matrix. """ status = _libcublas.cublasCsyr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cuda.cuFloatComplex(alpha.r...
python
def cublasCsyr(handle, uplo, n, alpha, x, incx, A, lda): """ Rank-1 operation on complex symmetric matrix. """ status = _libcublas.cublasCsyr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cuda.cuFloatComplex(alpha.r...
[ "def", "cublasCsyr", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "A", ",", "lda", ")", ":", "status", "=", "_libcublas", ".", "cublasCsyr_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "n", ...
Rank-1 operation on complex symmetric matrix.
[ "Rank", "-", "1", "operation", "on", "complex", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2856-L2867
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZsyr
def cublasZsyr(handle, uplo, n, alpha, x, incx, A, lda): """ Rank-1 operation on complex symmetric matrix. """ status = _libcublas.cublasZsyr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cuda.cuDoubleComplex(alpha....
python
def cublasZsyr(handle, uplo, n, alpha, x, incx, A, lda): """ Rank-1 operation on complex symmetric matrix. """ status = _libcublas.cublasZsyr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cuda.cuDoubleComplex(alpha....
[ "def", "cublasZsyr", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "A", ",", "lda", ")", ":", "status", "=", "_libcublas", ".", "cublasZsyr_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "n", ...
Rank-1 operation on complex symmetric matrix.
[ "Rank", "-", "1", "operation", "on", "complex", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2878-L2889
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSsyr2
def cublasSsyr2(handle, uplo, n, alpha, x, incx, y, incy, A, lda): """ Rank-2 operation on real symmetric matrix. """ status = _libcublas.cublasSsyr2_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_float(alpha)...
python
def cublasSsyr2(handle, uplo, n, alpha, x, incx, y, incy, A, lda): """ Rank-2 operation on real symmetric matrix. """ status = _libcublas.cublasSsyr2_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_float(alpha)...
[ "def", "cublasSsyr2", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "y", ",", "incy", ",", "A", ",", "lda", ")", ":", "status", "=", "_libcublas", ".", "cublasSsyr2_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", ...
Rank-2 operation on real symmetric matrix.
[ "Rank", "-", "2", "operation", "on", "real", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2903-L2914
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDsyr2
def cublasDsyr2(handle, uplo, n, alpha, x, incx, y, incy, A, lda): """ Rank-2 operation on real symmetric matrix. """ status = _libcublas.cublasDsyr2_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_double(alph...
python
def cublasDsyr2(handle, uplo, n, alpha, x, incx, y, incy, A, lda): """ Rank-2 operation on real symmetric matrix. """ status = _libcublas.cublasDsyr2_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_double(alph...
[ "def", "cublasDsyr2", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "y", ",", "incy", ",", "A", ",", "lda", ")", ":", "status", "=", "_libcublas", ".", "cublasDsyr2_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", ...
Rank-2 operation on real symmetric matrix.
[ "Rank", "-", "2", "operation", "on", "real", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L2927-L2938
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasStbmv
def cublasStbmv(handle, uplo, trans, diag, n, k, A, lda, x, incx): """ Matrix-vector product for real triangular-banded matrix. """ status = _libcublas.cublasStbmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans],...
python
def cublasStbmv(handle, uplo, trans, diag, n, k, A, lda, x, incx): """ Matrix-vector product for real triangular-banded matrix. """ status = _libcublas.cublasStbmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans],...
[ "def", "cublasStbmv", "(", "handle", ",", "uplo", ",", "trans", ",", "diag", ",", "n", ",", "k", ",", "A", ",", "lda", ",", "x", ",", "incx", ")", ":", "status", "=", "_libcublas", ".", "cublasStbmv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", ...
Matrix-vector product for real triangular-banded matrix.
[ "Matrix", "-", "vector", "product", "for", "real", "triangular", "-", "banded", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3002-L3013
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasStpmv
def cublasStpmv(handle, uplo, trans, diag, n, AP, x, incx): """ Matrix-vector product for real triangular-packed matrix. """ status = _libcublas.cublasStpmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
python
def cublasStpmv(handle, uplo, trans, diag, n, AP, x, incx): """ Matrix-vector product for real triangular-packed matrix. """ status = _libcublas.cublasStpmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
[ "def", "cublasStpmv", "(", "handle", ",", "uplo", ",", "trans", ",", "diag", ",", "n", ",", "AP", ",", "x", ",", "incx", ")", ":", "status", "=", "_libcublas", ".", "cublasStpmv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "_C...
Matrix-vector product for real triangular-packed matrix.
[ "Matrix", "-", "vector", "product", "for", "real", "triangular", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3194-L3205
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasCtpmv
def cublasCtpmv(handle, uplo, trans, diag, n, AP, x, incx): """ Matrix-vector product for complex triangular-packed matrix. """ status = _libcublas.cublasCtpmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
python
def cublasCtpmv(handle, uplo, trans, diag, n, AP, x, incx): """ Matrix-vector product for complex triangular-packed matrix. """ status = _libcublas.cublasCtpmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
[ "def", "cublasCtpmv", "(", "handle", ",", "uplo", ",", "trans", ",", "diag", ",", "n", ",", "AP", ",", "x", ",", "incx", ")", ":", "status", "=", "_libcublas", ".", "cublasCtpmv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "_C...
Matrix-vector product for complex triangular-packed matrix.
[ "Matrix", "-", "vector", "product", "for", "complex", "triangular", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3216-L3227
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDtpmv
def cublasDtpmv(handle, uplo, trans, diag, n, AP, x, incx): """ Matrix-vector product for real triangular-packed matrix. """ status = _libcublas.cublasDtpmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
python
def cublasDtpmv(handle, uplo, trans, diag, n, AP, x, incx): """ Matrix-vector product for real triangular-packed matrix. """ status = _libcublas.cublasDtpmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
[ "def", "cublasDtpmv", "(", "handle", ",", "uplo", ",", "trans", ",", "diag", ",", "n", ",", "AP", ",", "x", ",", "incx", ")", ":", "status", "=", "_libcublas", ".", "cublasDtpmv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "_C...
Matrix-vector product for real triangular-packed matrix.
[ "Matrix", "-", "vector", "product", "for", "real", "triangular", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3238-L3249
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZtpmv
def cublasZtpmv(handle, uplo, trans, diag, n, AP, x, incx): """ Matrix-vector product for complex triangular-packed matrix. """ status = _libcublas.cublasZtpmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
python
def cublasZtpmv(handle, uplo, trans, diag, n, AP, x, incx): """ Matrix-vector product for complex triangular-packed matrix. """ status = _libcublas.cublasZtpmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
[ "def", "cublasZtpmv", "(", "handle", ",", "uplo", ",", "trans", ",", "diag", ",", "n", ",", "AP", ",", "x", ",", "incx", ")", ":", "status", "=", "_libcublas", ".", "cublasZtpmv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "_C...
Matrix-vector product for complex triangular-packed matrix.
[ "Matrix", "-", "vector", "product", "for", "complex", "triangular", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3260-L3271
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasStpsv
def cublasStpsv(handle, uplo, trans, diag, n, AP, x, incx): """ Solve real triangular-packed system with one right-hand side. """ status = _libcublas.cublasStpsv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
python
def cublasStpsv(handle, uplo, trans, diag, n, AP, x, incx): """ Solve real triangular-packed system with one right-hand side. """ status = _libcublas.cublasStpsv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
[ "def", "cublasStpsv", "(", "handle", ",", "uplo", ",", "trans", ",", "diag", ",", "n", ",", "AP", ",", "x", ",", "incx", ")", ":", "status", "=", "_libcublas", ".", "cublasStpsv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "_C...
Solve real triangular-packed system with one right-hand side.
[ "Solve", "real", "triangular", "-", "packed", "system", "with", "one", "right", "-", "hand", "side", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3283-L3294
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDtpsv
def cublasDtpsv(handle, uplo, trans, diag, n, AP, x, incx): """ Solve real triangular-packed system with one right-hand side. """ status = _libcublas.cublasDtpsv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
python
def cublasDtpsv(handle, uplo, trans, diag, n, AP, x, incx): """ Solve real triangular-packed system with one right-hand side. """ status = _libcublas.cublasDtpsv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
[ "def", "cublasDtpsv", "(", "handle", ",", "uplo", ",", "trans", ",", "diag", ",", "n", ",", "AP", ",", "x", ",", "incx", ")", ":", "status", "=", "_libcublas", ".", "cublasDtpsv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "_C...
Solve real triangular-packed system with one right-hand side.
[ "Solve", "real", "triangular", "-", "packed", "system", "with", "one", "right", "-", "hand", "side", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3306-L3317
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasCtpsv
def cublasCtpsv(handle, uplo, trans, diag, n, AP, x, incx): """ Solve complex triangular-packed system with one right-hand side. """ status = _libcublas.cublasCtpsv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[tra...
python
def cublasCtpsv(handle, uplo, trans, diag, n, AP, x, incx): """ Solve complex triangular-packed system with one right-hand side. """ status = _libcublas.cublasCtpsv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[tra...
[ "def", "cublasCtpsv", "(", "handle", ",", "uplo", ",", "trans", ",", "diag", ",", "n", ",", "AP", ",", "x", ",", "incx", ")", ":", "status", "=", "_libcublas", ".", "cublasCtpsv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "_C...
Solve complex triangular-packed system with one right-hand side.
[ "Solve", "complex", "triangular", "-", "packed", "system", "with", "one", "right", "-", "hand", "side", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3328-L3339
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZtpsv
def cublasZtpsv(handle, uplo, trans, diag, n, AP, x, incx): """ Solve complex triangular-packed system with one right-hand size. """ status = _libcublas.cublasZtpsv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans]...
python
def cublasZtpsv(handle, uplo, trans, diag, n, AP, x, incx): """ Solve complex triangular-packed system with one right-hand size. """ status = _libcublas.cublasZtpsv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans]...
[ "def", "cublasZtpsv", "(", "handle", ",", "uplo", ",", "trans", ",", "diag", ",", "n", ",", "AP", ",", "x", ",", "incx", ")", ":", "status", "=", "_libcublas", ".", "cublasZtpsv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "_C...
Solve complex triangular-packed system with one right-hand size.
[ "Solve", "complex", "triangular", "-", "packed", "system", "with", "one", "right", "-", "hand", "size", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3350-L3361
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasCtrmv
def cublasCtrmv(handle, uplo, trans, diag, n, A, lda, x, incx): """ Matrix-vector product for complex triangular matrix. """ status = _libcublas.cublasCtrmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
python
def cublasCtrmv(handle, uplo, trans, diag, n, A, lda, x, incx): """ Matrix-vector product for complex triangular matrix. """ status = _libcublas.cublasCtrmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
[ "def", "cublasCtrmv", "(", "handle", ",", "uplo", ",", "trans", ",", "diag", ",", "n", ",", "A", ",", "lda", ",", "x", ",", "incx", ")", ":", "status", "=", "_libcublas", ".", "cublasCtrmv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]...
Matrix-vector product for complex triangular matrix.
[ "Matrix", "-", "vector", "product", "for", "complex", "triangular", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3397-L3408
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDtrmv
def cublasDtrmv(handle, uplo, trans, diag, n, A, lda, x, inx): """ Matrix-vector product for real triangular matrix. """ status = _libcublas.cublasDtrmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
python
def cublasDtrmv(handle, uplo, trans, diag, n, A, lda, x, inx): """ Matrix-vector product for real triangular matrix. """ status = _libcublas.cublasDtrmv_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
[ "def", "cublasDtrmv", "(", "handle", ",", "uplo", ",", "trans", ",", "diag", ",", "n", ",", "A", ",", "lda", ",", "x", ",", "inx", ")", ":", "status", "=", "_libcublas", ".", "cublasDtrmv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]"...
Matrix-vector product for real triangular matrix.
[ "Matrix", "-", "vector", "product", "for", "real", "triangular", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3420-L3431
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasChpmv
def cublasChpmv(handle, uplo, n, alpha, AP, x, incx, beta, y, incy): """ Matrix-vector product for Hermitian-packed matrix. """ status = _libcublas.cublasChpmv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cuda.c...
python
def cublasChpmv(handle, uplo, n, alpha, AP, x, incx, beta, y, incy): """ Matrix-vector product for Hermitian-packed matrix. """ status = _libcublas.cublasChpmv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cuda.c...
[ "def", "cublasChpmv", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "AP", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasChpmv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "["...
Matrix-vector product for Hermitian-packed matrix.
[ "Matrix", "-", "vector", "product", "for", "Hermitian", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3679-L3693
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZhpmv
def cublasZhpmv(handle, uplo, n, alpha, AP, x, incx, beta, y, incy): """ Matrix-vector product for Hermitian-packed matrix. """ status = _libcublas.cublasZhpmv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cuda.cu...
python
def cublasZhpmv(handle, uplo, n, alpha, AP, x, incx, beta, y, incy): """ Matrix-vector product for Hermitian-packed matrix. """ status = _libcublas.cublasZhpmv_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cuda.cu...
[ "def", "cublasZhpmv", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "AP", ",", "x", ",", "incx", ",", "beta", ",", "y", ",", "incy", ")", ":", "status", "=", "_libcublas", ".", "cublasZhpmv_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "["...
Matrix-vector product for Hermitian-packed matrix.
[ "Matrix", "-", "vector", "product", "for", "Hermitian", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3706-L3720
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasCher
def cublasCher(handle, uplo, n, alpha, x, incx, A, lda): """ Rank-1 operation on Hermitian matrix. """ status = _libcublas.cublasCher_v2(handle, _CUBLAS_FILL_MODE[uplo], n, alpha, int(x), incx, int(A), lda) cublasCheckSt...
python
def cublasCher(handle, uplo, n, alpha, x, incx, A, lda): """ Rank-1 operation on Hermitian matrix. """ status = _libcublas.cublasCher_v2(handle, _CUBLAS_FILL_MODE[uplo], n, alpha, int(x), incx, int(A), lda) cublasCheckSt...
[ "def", "cublasCher", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "A", ",", "lda", ")", ":", "status", "=", "_libcublas", ".", "cublasCher_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "n", ...
Rank-1 operation on Hermitian matrix.
[ "Rank", "-", "1", "operation", "on", "Hermitian", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3732-L3741
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZher
def cublasZher(handle, uplo, n, alpha, x, incx, A, lda): """ Rank-1 operation on Hermitian matrix. """ status = _libcublas.cublasZher_v2(handle, _CUBLAS_FILL_MODE[uplo], n, alpha, int(x), incx, int(A), lda) cublasChe...
python
def cublasZher(handle, uplo, n, alpha, x, incx, A, lda): """ Rank-1 operation on Hermitian matrix. """ status = _libcublas.cublasZher_v2(handle, _CUBLAS_FILL_MODE[uplo], n, alpha, int(x), incx, int(A), lda) cublasChe...
[ "def", "cublasZher", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "A", ",", "lda", ")", ":", "status", "=", "_libcublas", ".", "cublasZher_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "n", ...
Rank-1 operation on Hermitian matrix.
[ "Rank", "-", "1", "operation", "on", "Hermitian", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3752-L3761
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasChpr
def cublasChpr(handle, uplo, n, alpha, x, incx, AP): """ Rank-1 operation on Hermitian-packed matrix. """ status = _libcublas.cublasChpr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_float(alpha)), ...
python
def cublasChpr(handle, uplo, n, alpha, x, incx, AP): """ Rank-1 operation on Hermitian-packed matrix. """ status = _libcublas.cublasChpr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_float(alpha)), ...
[ "def", "cublasChpr", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "AP", ")", ":", "status", "=", "_libcublas", ".", "cublasChpr_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "n", ",", "ctypes"...
Rank-1 operation on Hermitian-packed matrix.
[ "Rank", "-", "1", "operation", "on", "Hermitian", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3823-L3833
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZhpr
def cublasZhpr(handle, uplo, n, alpha, x, incx, AP): """ Rank-1 operation on Hermitian-packed matrix. """ status = _libcublas.cublasZhpr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_double(alpha)), ...
python
def cublasZhpr(handle, uplo, n, alpha, x, incx, AP): """ Rank-1 operation on Hermitian-packed matrix. """ status = _libcublas.cublasZhpr_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(ctypes.c_double(alpha)), ...
[ "def", "cublasZhpr", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "incx", ",", "AP", ")", ":", "status", "=", "_libcublas", ".", "cublasZhpr_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]", ",", "n", ",", "ctypes"...
Rank-1 operation on Hermitian-packed matrix.
[ "Rank", "-", "1", "operation", "on", "Hermitian", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3843-L3853
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasChpr2
def cublasChpr2(handle, uplo, n, alpha, x, inx, y, incy, AP): """ Rank-2 operation on Hermitian-packed matrix. """ status = _libcublas.cublasChpr2_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cuda.cuFloatComplex...
python
def cublasChpr2(handle, uplo, n, alpha, x, inx, y, incy, AP): """ Rank-2 operation on Hermitian-packed matrix. """ status = _libcublas.cublasChpr2_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cuda.cuFloatComplex...
[ "def", "cublasChpr2", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "inx", ",", "y", ",", "incy", ",", "AP", ")", ":", "status", "=", "_libcublas", ".", "cublasChpr2_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]",...
Rank-2 operation on Hermitian-packed matrix.
[ "Rank", "-", "2", "operation", "on", "Hermitian", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3866-L3877
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZhpr2
def cublasZhpr2(handle, uplo, n, alpha, x, inx, y, incy, AP): """ Rank-2 operation on Hermitian-packed matrix. """ status = _libcublas.cublasZhpr2_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cuda.cuDoubleComple...
python
def cublasZhpr2(handle, uplo, n, alpha, x, inx, y, incy, AP): """ Rank-2 operation on Hermitian-packed matrix. """ status = _libcublas.cublasZhpr2_v2(handle, _CUBLAS_FILL_MODE[uplo], n, ctypes.byref(cuda.cuDoubleComple...
[ "def", "cublasZhpr2", "(", "handle", ",", "uplo", ",", "n", ",", "alpha", ",", "x", ",", "inx", ",", "y", ",", "incy", ",", "AP", ")", ":", "status", "=", "_libcublas", ".", "cublasZhpr2_v2", "(", "handle", ",", "_CUBLAS_FILL_MODE", "[", "uplo", "]",...
Rank-2 operation on Hermitian-packed matrix.
[ "Rank", "-", "2", "operation", "on", "Hermitian", "-", "packed", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3889-L3900
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSgemm
def cublasSgemm(handle, transa, transb, m, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Matrix-matrix product for real general matrix. """ status = _libcublas.cublasSgemm_v2(handle, _CUBLAS_OP[transa], _CUBLAS_OP[transb],...
python
def cublasSgemm(handle, transa, transb, m, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Matrix-matrix product for real general matrix. """ status = _libcublas.cublasSgemm_v2(handle, _CUBLAS_OP[transa], _CUBLAS_OP[transb],...
[ "def", "cublasSgemm", "(", "handle", ",", "transa", ",", "transb", ",", "m", ",", "n", ",", "k", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasSge...
Matrix-matrix product for real general matrix.
[ "Matrix", "-", "matrix", "product", "for", "real", "general", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3918-L3931
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDgemm
def cublasDgemm(handle, transa, transb, m, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Matrix-matrix product for real general matrix. """ status = _libcublas.cublasDgemm_v2(handle, _CUBLAS_OP[transa], _CUBLAS_OP[transb],...
python
def cublasDgemm(handle, transa, transb, m, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Matrix-matrix product for real general matrix. """ status = _libcublas.cublasDgemm_v2(handle, _CUBLAS_OP[transa], _CUBLAS_OP[transb],...
[ "def", "cublasDgemm", "(", "handle", ",", "transa", ",", "transb", ",", "m", ",", "n", ",", "k", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasDge...
Matrix-matrix product for real general matrix.
[ "Matrix", "-", "matrix", "product", "for", "real", "general", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L3980-L3993
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZgemm
def cublasZgemm(handle, transa, transb, m, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Matrix-matrix product for complex general matrix. """ status = _libcublas.cublasZgemm_v2(handle, _CUBLAS_OP[transa], _CUBLAS_OP[trans...
python
def cublasZgemm(handle, transa, transb, m, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Matrix-matrix product for complex general matrix. """ status = _libcublas.cublasZgemm_v2(handle, _CUBLAS_OP[transa], _CUBLAS_OP[trans...
[ "def", "cublasZgemm", "(", "handle", ",", "transa", ",", "transb", ",", "m", ",", "n", ",", "k", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasZge...
Matrix-matrix product for complex general matrix.
[ "Matrix", "-", "matrix", "product", "for", "complex", "general", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4010-L4025
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSsymm
def cublasSsymm(handle, side, uplo, m, n, alpha, A, lda, B, ldb, beta, C, ldc): """ Matrix-matrix product for symmetric matrix. """ status = _libcublas.cublasSsymm_v2(handle, _CUBLAS_SIDE_MODE[side], _CUBLAS_FILL_MODE[u...
python
def cublasSsymm(handle, side, uplo, m, n, alpha, A, lda, B, ldb, beta, C, ldc): """ Matrix-matrix product for symmetric matrix. """ status = _libcublas.cublasSsymm_v2(handle, _CUBLAS_SIDE_MODE[side], _CUBLAS_FILL_MODE[u...
[ "def", "cublasSsymm", "(", "handle", ",", "side", ",", "uplo", ",", "m", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasSsymm_v2", "(", "...
Matrix-matrix product for symmetric matrix.
[ "Matrix", "-", "matrix", "product", "for", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4042-L4055
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDsymm
def cublasDsymm(handle, side, uplo, m, n, alpha, A, lda, B, ldb, beta, C, ldc): """ Matrix-matrix product for real symmetric matrix. """ status = _libcublas.cublasDsymm_v2(handle, _CUBLAS_SIDE_MODE[side], _CUBLAS_FILL_M...
python
def cublasDsymm(handle, side, uplo, m, n, alpha, A, lda, B, ldb, beta, C, ldc): """ Matrix-matrix product for real symmetric matrix. """ status = _libcublas.cublasDsymm_v2(handle, _CUBLAS_SIDE_MODE[side], _CUBLAS_FILL_M...
[ "def", "cublasDsymm", "(", "handle", ",", "side", ",", "uplo", ",", "m", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasDsymm_v2", "(", "...
Matrix-matrix product for real symmetric matrix.
[ "Matrix", "-", "matrix", "product", "for", "real", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4072-L4085
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasCsymm
def cublasCsymm(handle, side, uplo, m, n, alpha, A, lda, B, ldb, beta, C, ldc): """ Matrix-matrix product for complex symmetric matrix. """ status = _libcublas.cublasCsymm_v2(handle, _CUBLAS_SIDE_MODE[side], _CUBLAS_FI...
python
def cublasCsymm(handle, side, uplo, m, n, alpha, A, lda, B, ldb, beta, C, ldc): """ Matrix-matrix product for complex symmetric matrix. """ status = _libcublas.cublasCsymm_v2(handle, _CUBLAS_SIDE_MODE[side], _CUBLAS_FI...
[ "def", "cublasCsymm", "(", "handle", ",", "side", ",", "uplo", ",", "m", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasCsymm_v2", "(", "...
Matrix-matrix product for complex symmetric matrix.
[ "Matrix", "-", "matrix", "product", "for", "complex", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4101-L4116
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSsyrk
def cublasSsyrk(handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc): """ Rank-k operation on real symmetric matrix. """ status = _libcublas.cublasSsyrk_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
python
def cublasSsyrk(handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc): """ Rank-k operation on real symmetric matrix. """ status = _libcublas.cublasSsyrk_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
[ "def", "cublasSsyrk", "(", "handle", ",", "uplo", ",", "trans", ",", "n", ",", "k", ",", "alpha", ",", "A", ",", "lda", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasSsyrk_v2", "(", "handle", ",", "_CUBLAS_FI...
Rank-k operation on real symmetric matrix.
[ "Rank", "-", "k", "operation", "on", "real", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4162-L4175
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDsyrk
def cublasDsyrk(handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc): """ Rank-k operation on real symmetric matrix. """ status = _libcublas.cublasDsyrk_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
python
def cublasDsyrk(handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc): """ Rank-k operation on real symmetric matrix. """ status = _libcublas.cublasDsyrk_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
[ "def", "cublasDsyrk", "(", "handle", ",", "uplo", ",", "trans", ",", "n", ",", "k", ",", "alpha", ",", "A", ",", "lda", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasDsyrk_v2", "(", "handle", ",", "_CUBLAS_FI...
Rank-k operation on real symmetric matrix.
[ "Rank", "-", "k", "operation", "on", "real", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4189-L4204
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZsyrk
def cublasZsyrk(handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc): """ Rank-k operation on complex symmetric matrix. """ status = _libcublas.cublasZsyrk_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
python
def cublasZsyrk(handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc): """ Rank-k operation on complex symmetric matrix. """ status = _libcublas.cublasZsyrk_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
[ "def", "cublasZsyrk", "(", "handle", ",", "uplo", ",", "trans", ",", "n", ",", "k", ",", "alpha", ",", "A", ",", "lda", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasZsyrk_v2", "(", "handle", ",", "_CUBLAS_FI...
Rank-k operation on complex symmetric matrix.
[ "Rank", "-", "k", "operation", "on", "complex", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4247-L4262
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSsyr2k
def cublasSsyr2k(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Rank-2k operation on real symmetric matrix. """ status = _libcublas.cublasSsyr2k_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[tra...
python
def cublasSsyr2k(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Rank-2k operation on real symmetric matrix. """ status = _libcublas.cublasSsyr2k_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[tra...
[ "def", "cublasSsyr2k", "(", "handle", ",", "uplo", ",", "trans", ",", "n", ",", "k", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasSsyr2k_v2", "(", ...
Rank-2k operation on real symmetric matrix.
[ "Rank", "-", "2k", "operation", "on", "real", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4279-L4292
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDsyr2k
def cublasDsyr2k(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Rank-2k operation on real symmetric matrix. """ status = _libcublas.cublasDsyr2k_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans]...
python
def cublasDsyr2k(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Rank-2k operation on real symmetric matrix. """ status = _libcublas.cublasDsyr2k_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans]...
[ "def", "cublasDsyr2k", "(", "handle", ",", "uplo", ",", "trans", ",", "n", ",", "k", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasDsyr2k_v2", "(", ...
Rank-2k operation on real symmetric matrix.
[ "Rank", "-", "2k", "operation", "on", "real", "symmetric", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4308-L4321
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasStrmm
def cublasStrmm(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb, C, ldc): """ Matrix-matrix product for real triangular matrix. """ status = _libcublas.cublasStrmm_v2(handle, _CUBLAS_SIDE_MODE[side], _CUBLA...
python
def cublasStrmm(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb, C, ldc): """ Matrix-matrix product for real triangular matrix. """ status = _libcublas.cublasStrmm_v2(handle, _CUBLAS_SIDE_MODE[side], _CUBLA...
[ "def", "cublasStrmm", "(", "handle", ",", "side", ",", "uplo", ",", "trans", ",", "diag", ",", "m", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasStr...
Matrix-matrix product for real triangular matrix.
[ "Matrix", "-", "matrix", "product", "for", "real", "triangular", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4401-L4414
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZtrmm
def cublasZtrmm(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb, C, ldc): """ Matrix-matrix product for complex triangular matrix. """ status = _libcublas.cublasZtrmm_v2(handle, _CUBLAS_SIDE_MODE[side], _C...
python
def cublasZtrmm(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb, C, ldc): """ Matrix-matrix product for complex triangular matrix. """ status = _libcublas.cublasZtrmm_v2(handle, _CUBLAS_SIDE_MODE[side], _C...
[ "def", "cublasZtrmm", "(", "handle", ",", "side", ",", "uplo", ",", "trans", ",", "diag", ",", "m", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasZtr...
Matrix-matrix product for complex triangular matrix.
[ "Matrix", "-", "matrix", "product", "for", "complex", "triangular", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4492-L4506
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasStrsm
def cublasStrsm(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb): """ Solve a real triangular system with multiple right-hand sides. """ status = _libcublas.cublasStrsm_v2(handle, _CUBLAS_SIDE_MODE[side], ...
python
def cublasStrsm(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb): """ Solve a real triangular system with multiple right-hand sides. """ status = _libcublas.cublasStrsm_v2(handle, _CUBLAS_SIDE_MODE[side], ...
[ "def", "cublasStrsm", "(", "handle", ",", "side", ",", "uplo", ",", "trans", ",", "diag", ",", "m", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ")", ":", "status", "=", "_libcublas", ".", "cublasStrsm_v2", "(", "handle", "...
Solve a real triangular system with multiple right-hand sides.
[ "Solve", "a", "real", "triangular", "system", "with", "multiple", "right", "-", "hand", "sides", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4522-L4535
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasDtrsm
def cublasDtrsm(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb): """ Solve a real triangular system with multiple right-hand sides. """ status = _libcublas.cublasDtrsm_v2(handle, _CUBLAS_SIDE_MODE[side], ...
python
def cublasDtrsm(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb): """ Solve a real triangular system with multiple right-hand sides. """ status = _libcublas.cublasDtrsm_v2(handle, _CUBLAS_SIDE_MODE[side], ...
[ "def", "cublasDtrsm", "(", "handle", ",", "side", ",", "uplo", ",", "trans", ",", "diag", ",", "m", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ")", ":", "status", "=", "_libcublas", ".", "cublasDtrsm_v2", "(", "handle", "...
Solve a real triangular system with multiple right-hand sides.
[ "Solve", "a", "real", "triangular", "system", "with", "multiple", "right", "-", "hand", "sides", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4550-L4563
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZtrsm
def cublasZtrsm(handle, side, uplo, transa, diag, m, n, alpha, A, lda, B, ldb): """ Solve complex triangular system with multiple right-hand sides. """ status = _libcublas.cublasZtrsm_v2(handle, _CUBLAS_SIDE_MODE[side], ...
python
def cublasZtrsm(handle, side, uplo, transa, diag, m, n, alpha, A, lda, B, ldb): """ Solve complex triangular system with multiple right-hand sides. """ status = _libcublas.cublasZtrsm_v2(handle, _CUBLAS_SIDE_MODE[side], ...
[ "def", "cublasZtrsm", "(", "handle", ",", "side", ",", "uplo", ",", "transa", ",", "diag", ",", "m", ",", "n", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ")", ":", "status", "=", "_libcublas", ".", "cublasZtrsm_v2", "(", "handle", ...
Solve complex triangular system with multiple right-hand sides.
[ "Solve", "complex", "triangular", "system", "with", "multiple", "right", "-", "hand", "sides", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4607-L4621
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasZherk
def cublasZherk(handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc): """ Rank-k operation on Hermitian matrix. """ status = _libcublas.cublasZherk_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
python
def cublasZherk(handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc): """ Rank-k operation on Hermitian matrix. """ status = _libcublas.cublasZherk_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans], ...
[ "def", "cublasZherk", "(", "handle", ",", "uplo", ",", "trans", ",", "n", ",", "k", ",", "alpha", ",", "A", ",", "lda", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasZherk_v2", "(", "handle", ",", "_CUBLAS_FI...
Rank-k operation on Hermitian matrix.
[ "Rank", "-", "k", "operation", "on", "Hermitian", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4726-L4739
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasCher2k
def cublasCher2k(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Rank-2k operation on Hermitian matrix. """ status = _libcublas.cublasCher2k_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans],...
python
def cublasCher2k(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Rank-2k operation on Hermitian matrix. """ status = _libcublas.cublasCher2k_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans],...
[ "def", "cublasCher2k", "(", "handle", ",", "uplo", ",", "trans", ",", "n", ",", "k", ",", "alpha", ",", "A", ",", "lda", ",", "B", ",", "ldb", ",", "beta", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasCher2k_v2", "(", ...
Rank-2k operation on Hermitian matrix.
[ "Rank", "-", "2k", "operation", "on", "Hermitian", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4756-L4771
hannes-brt/hebel
hebel/pycuda_ops/cublas.py
cublasSdgmm
def cublasSdgmm(handle, mode, m, n, A, lda, x, incx, C, ldc): """ Matrix-diagonal matrix product for real general matrix. """ status = _libcublas.cublasSdgmm(handle, _CUBLAS_SIDE[mode], m, n, ...
python
def cublasSdgmm(handle, mode, m, n, A, lda, x, incx, C, ldc): """ Matrix-diagonal matrix product for real general matrix. """ status = _libcublas.cublasSdgmm(handle, _CUBLAS_SIDE[mode], m, n, ...
[ "def", "cublasSdgmm", "(", "handle", ",", "mode", ",", "m", ",", "n", ",", "A", ",", "lda", ",", "x", ",", "incx", ",", "C", ",", "ldc", ")", ":", "status", "=", "_libcublas", ".", "cublasSdgmm", "(", "handle", ",", "_CUBLAS_SIDE", "[", "mode", "...
Matrix-diagonal matrix product for real general matrix.
[ "Matrix", "-", "diagonal", "matrix", "product", "for", "real", "general", "matrix", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/cublas.py#L4819-L4831
dwkim78/upsilon
upsilon/datasets/base.py
load_EROS_lc
def load_EROS_lc(filename='lm0010n22323.time'): """ Read an EROS light curve and return its data. Parameters ---------- filename : str, optional A light-curve filename. Returns ------- dates : numpy.ndarray An array of dates. magnitudes : numpy.ndarray An ar...
python
def load_EROS_lc(filename='lm0010n22323.time'): """ Read an EROS light curve and return its data. Parameters ---------- filename : str, optional A light-curve filename. Returns ------- dates : numpy.ndarray An array of dates. magnitudes : numpy.ndarray An ar...
[ "def", "load_EROS_lc", "(", "filename", "=", "'lm0010n22323.time'", ")", ":", "module_path", "=", "dirname", "(", "__file__", ")", "file_path", "=", "join", "(", "module_path", ",", "'lightcurves'", ",", "filename", ")", "data", "=", "np", ".", "loadtxt", "(...
Read an EROS light curve and return its data. Parameters ---------- filename : str, optional A light-curve filename. Returns ------- dates : numpy.ndarray An array of dates. magnitudes : numpy.ndarray An array of magnitudes. errors : numpy.ndarray An arr...
[ "Read", "an", "EROS", "light", "curve", "and", "return", "its", "data", "." ]
train
https://github.com/dwkim78/upsilon/blob/5f381453f26582ef56e62fb8fed7317ce67861af/upsilon/datasets/base.py#L12-L39
dwkim78/upsilon
upsilon/datasets/base.py
load_rf_model
def load_rf_model(): """ Return the UPSILoN random forests classifier. The classifier is trained using OGLE and EROS periodic variables (Kim et al. 2015). Returns ------- clf : sklearn.ensemble.RandomForestClassifier The UPSILoN random forests classifier. """ import gzip ...
python
def load_rf_model(): """ Return the UPSILoN random forests classifier. The classifier is trained using OGLE and EROS periodic variables (Kim et al. 2015). Returns ------- clf : sklearn.ensemble.RandomForestClassifier The UPSILoN random forests classifier. """ import gzip ...
[ "def", "load_rf_model", "(", ")", ":", "import", "gzip", "try", ":", "import", "cPickle", "as", "pickle", "except", ":", "import", "pickle", "module_path", "=", "dirname", "(", "__file__", ")", "file_path", "=", "join", "(", "module_path", ",", "'models/rf.m...
Return the UPSILoN random forests classifier. The classifier is trained using OGLE and EROS periodic variables (Kim et al. 2015). Returns ------- clf : sklearn.ensemble.RandomForestClassifier The UPSILoN random forests classifier.
[ "Return", "the", "UPSILoN", "random", "forests", "classifier", "." ]
train
https://github.com/dwkim78/upsilon/blob/5f381453f26582ef56e62fb8fed7317ce67861af/upsilon/datasets/base.py#L42-L71
hannes-brt/hebel
hebel/pycuda_ops/elementwise.py
sample_dropout_mask
def sample_dropout_mask(x, dropout_probability=.5, columns=None, stream=None, target=None, dropout_mask=None, dropout_prob_array=None): """ Samples a dropout mask and applies it in place""" assert x.flags.c_contiguous if columns is not None: assert len(columns) == 2 ...
python
def sample_dropout_mask(x, dropout_probability=.5, columns=None, stream=None, target=None, dropout_mask=None, dropout_prob_array=None): """ Samples a dropout mask and applies it in place""" assert x.flags.c_contiguous if columns is not None: assert len(columns) == 2 ...
[ "def", "sample_dropout_mask", "(", "x", ",", "dropout_probability", "=", ".5", ",", "columns", "=", "None", ",", "stream", "=", "None", ",", "target", "=", "None", ",", "dropout_mask", "=", "None", ",", "dropout_prob_array", "=", "None", ")", ":", "assert"...
Samples a dropout mask and applies it in place
[ "Samples", "a", "dropout", "mask", "and", "applies", "it", "in", "place" ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/pycuda_ops/elementwise.py#L222-L251
rix0rrr/gcl
gcl/__init__.py
reads
def reads(s, filename=None, loader=None, implicit_tuple=True, allow_errors=False): """Load but don't evaluate a GCL expression from a string.""" return ast.reads(s, filename=filename or '<input>', loader=loader or default_loader, implicit_tuple=implicit_tuple, allow_errors=allow_errors)
python
def reads(s, filename=None, loader=None, implicit_tuple=True, allow_errors=False): """Load but don't evaluate a GCL expression from a string.""" return ast.reads(s, filename=filename or '<input>', loader=loader or default_loader, implicit_tuple=implicit_tuple, allow_errors=allow_errors)
[ "def", "reads", "(", "s", ",", "filename", "=", "None", ",", "loader", "=", "None", ",", "implicit_tuple", "=", "True", ",", "allow_errors", "=", "False", ")", ":", "return", "ast", ".", "reads", "(", "s", ",", "filename", "=", "filename", "or", "'<i...
Load but don't evaluate a GCL expression from a string.
[ "Load", "but", "don", "t", "evaluate", "a", "GCL", "expression", "from", "a", "string", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/__init__.py#L77-L83
rix0rrr/gcl
gcl/__init__.py
read
def read(filename, loader=None, implicit_tuple=True, allow_errors=False): """Load but don't evaluate a GCL expression from a file.""" with open(filename, 'r') as f: return reads(f.read(), filename=filename, loader=loader, implicit_tuple=implicit_tuple, ...
python
def read(filename, loader=None, implicit_tuple=True, allow_errors=False): """Load but don't evaluate a GCL expression from a file.""" with open(filename, 'r') as f: return reads(f.read(), filename=filename, loader=loader, implicit_tuple=implicit_tuple, ...
[ "def", "read", "(", "filename", ",", "loader", "=", "None", ",", "implicit_tuple", "=", "True", ",", "allow_errors", "=", "False", ")", ":", "with", "open", "(", "filename", ",", "'r'", ")", "as", "f", ":", "return", "reads", "(", "f", ".", "read", ...
Load but don't evaluate a GCL expression from a file.
[ "Load", "but", "don", "t", "evaluate", "a", "GCL", "expression", "from", "a", "file", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/__init__.py#L86-L93
rix0rrr/gcl
gcl/__init__.py
loads
def loads(s, filename=None, loader=None, implicit_tuple=True, env={}, schema=None): """Load and evaluate a GCL expression from a string.""" ast = reads(s, filename=filename, loader=loader, implicit_tuple=implicit_tuple) if not isinstance(env, framework.Environment): # For backwards compatibility we accept an ...
python
def loads(s, filename=None, loader=None, implicit_tuple=True, env={}, schema=None): """Load and evaluate a GCL expression from a string.""" ast = reads(s, filename=filename, loader=loader, implicit_tuple=implicit_tuple) if not isinstance(env, framework.Environment): # For backwards compatibility we accept an ...
[ "def", "loads", "(", "s", ",", "filename", "=", "None", ",", "loader", "=", "None", ",", "implicit_tuple", "=", "True", ",", "env", "=", "{", "}", ",", "schema", "=", "None", ")", ":", "ast", "=", "reads", "(", "s", ",", "filename", "=", "filenam...
Load and evaluate a GCL expression from a string.
[ "Load", "and", "evaluate", "a", "GCL", "expression", "from", "a", "string", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/__init__.py#L97-L105
rix0rrr/gcl
gcl/__init__.py
load
def load(filename, loader=None, implicit_tuple=True, env={}, schema=None): """Load and evaluate a GCL expression from a file.""" with open(filename, 'r') as f: return loads(f.read(), filename=filename, loader=loader, implicit_tuple=implicit_tuple, ...
python
def load(filename, loader=None, implicit_tuple=True, env={}, schema=None): """Load and evaluate a GCL expression from a file.""" with open(filename, 'r') as f: return loads(f.read(), filename=filename, loader=loader, implicit_tuple=implicit_tuple, ...
[ "def", "load", "(", "filename", ",", "loader", "=", "None", ",", "implicit_tuple", "=", "True", ",", "env", "=", "{", "}", ",", "schema", "=", "None", ")", ":", "with", "open", "(", "filename", ",", "'r'", ")", "as", "f", ":", "return", "loads", ...
Load and evaluate a GCL expression from a file.
[ "Load", "and", "evaluate", "a", "GCL", "expression", "from", "a", "file", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/__init__.py#L108-L116
hannes-brt/hebel
hebel/schedulers.py
linear_scheduler_up
def linear_scheduler_up(init_value, target_value, duration): """ Increases linearly and then stays flat """ value = init_value t = 0 while True: yield value t += 1 if t < duration: value = init_value + t * (target_value - init_value) / duration else: ...
python
def linear_scheduler_up(init_value, target_value, duration): """ Increases linearly and then stays flat """ value = init_value t = 0 while True: yield value t += 1 if t < duration: value = init_value + t * (target_value - init_value) / duration else: ...
[ "def", "linear_scheduler_up", "(", "init_value", ",", "target_value", ",", "duration", ")", ":", "value", "=", "init_value", "t", "=", "0", "while", "True", ":", "yield", "value", "t", "+=", "1", "if", "t", "<", "duration", ":", "value", "=", "init_value...
Increases linearly and then stays flat
[ "Increases", "linearly", "and", "then", "stays", "flat" ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/schedulers.py#L38-L49
hannes-brt/hebel
hebel/schedulers.py
linear_scheduler_up_down
def linear_scheduler_up_down(init_value, target_value, final_value, duration_up, t_decrease, duration_down): """ Increases linearly to target_value, stays at target_value until t_decrease and then decreases linearly """ value = init_value t = 0 while True: ...
python
def linear_scheduler_up_down(init_value, target_value, final_value, duration_up, t_decrease, duration_down): """ Increases linearly to target_value, stays at target_value until t_decrease and then decreases linearly """ value = init_value t = 0 while True: ...
[ "def", "linear_scheduler_up_down", "(", "init_value", ",", "target_value", ",", "final_value", ",", "duration_up", ",", "t_decrease", ",", "duration_down", ")", ":", "value", "=", "init_value", "t", "=", "0", "while", "True", ":", "yield", "value", "t", "+=", ...
Increases linearly to target_value, stays at target_value until t_decrease and then decreases linearly
[ "Increases", "linearly", "to", "target_value", "stays", "at", "target_value", "until", "t_decrease", "and", "then", "decreases", "linearly" ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/schedulers.py#L52-L72
hannes-brt/hebel
hebel/config.py
load
def load(stream, overrides=None, **kwargs): """ Loads a YAML configuration from a string or file-like object. Parameters ---------- stream : str or object Either a string containing valid YAML or a file-like object supporting the .read() interface. overrides : dict, optional ...
python
def load(stream, overrides=None, **kwargs): """ Loads a YAML configuration from a string or file-like object. Parameters ---------- stream : str or object Either a string containing valid YAML or a file-like object supporting the .read() interface. overrides : dict, optional ...
[ "def", "load", "(", "stream", ",", "overrides", "=", "None", ",", "*", "*", "kwargs", ")", ":", "global", "is_initialized", "if", "not", "is_initialized", ":", "initialize", "(", ")", "if", "isinstance", "(", "stream", ",", "basestring", ")", ":", "strin...
Loads a YAML configuration from a string or file-like object. Parameters ---------- stream : str or object Either a string containing valid YAML or a file-like object supporting the .read() interface. overrides : dict, optional A dictionary containing overrides to apply. The loc...
[ "Loads", "a", "YAML", "configuration", "from", "a", "string", "or", "file", "-", "like", "object", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/config.py#L56-L100
hannes-brt/hebel
hebel/config.py
load_path
def load_path(path, overrides=None, **kwargs): """ Convenience function for loading a YAML configuration from a file. Parameters ---------- path : str The path to the file to load on disk. overrides : dict, optional A dictionary containing overrides to apply. The location of ...
python
def load_path(path, overrides=None, **kwargs): """ Convenience function for loading a YAML configuration from a file. Parameters ---------- path : str The path to the file to load on disk. overrides : dict, optional A dictionary containing overrides to apply. The location of ...
[ "def", "load_path", "(", "path", ",", "overrides", "=", "None", ",", "*", "*", "kwargs", ")", ":", "f", "=", "open", "(", "path", ",", "'r'", ")", "content", "=", "''", ".", "join", "(", "f", ".", "readlines", "(", ")", ")", "f", ".", "close", ...
Convenience function for loading a YAML configuration from a file. Parameters ---------- path : str The path to the file to load on disk. overrides : dict, optional A dictionary containing overrides to apply. The location of the override is specified in the key as a dot-delimite...
[ "Convenience", "function", "for", "loading", "a", "YAML", "configuration", "from", "a", "file", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/config.py#L103-L133
hannes-brt/hebel
hebel/config.py
handle_overrides
def handle_overrides(graph, overrides): """ Handle any overrides for this model configuration. Parameters ---------- graph : dict or object A dictionary (or an ObjectProxy) containing the object graph loaded from a YAML file. overrides : dict A dictionary containing over...
python
def handle_overrides(graph, overrides): """ Handle any overrides for this model configuration. Parameters ---------- graph : dict or object A dictionary (or an ObjectProxy) containing the object graph loaded from a YAML file. overrides : dict A dictionary containing over...
[ "def", "handle_overrides", "(", "graph", ",", "overrides", ")", ":", "for", "key", "in", "overrides", ":", "levels", "=", "key", ".", "split", "(", "'.'", ")", "part", "=", "graph", "for", "lvl", "in", "levels", "[", ":", "-", "1", "]", ":", "try",...
Handle any overrides for this model configuration. Parameters ---------- graph : dict or object A dictionary (or an ObjectProxy) containing the object graph loaded from a YAML file. overrides : dict A dictionary containing overrides to apply. The location of the override...
[ "Handle", "any", "overrides", "for", "this", "model", "configuration", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/config.py#L136-L161
hannes-brt/hebel
hebel/config.py
instantiate_all
def instantiate_all(graph): """ Instantiate all ObjectProxy objects in a nested hierarchy. Parameters ---------- graph : dict or object A dictionary (or an ObjectProxy) containing the object graph loaded from a YAML file. Returns ------- graph : dict or object T...
python
def instantiate_all(graph): """ Instantiate all ObjectProxy objects in a nested hierarchy. Parameters ---------- graph : dict or object A dictionary (or an ObjectProxy) containing the object graph loaded from a YAML file. Returns ------- graph : dict or object T...
[ "def", "instantiate_all", "(", "graph", ")", ":", "def", "should_instantiate", "(", "obj", ")", ":", "classes", "=", "[", "ObjectProxy", ",", "dict", ",", "list", "]", "return", "True", "in", "[", "isinstance", "(", "obj", ",", "cls", ")", "for", "cls"...
Instantiate all ObjectProxy objects in a nested hierarchy. Parameters ---------- graph : dict or object A dictionary (or an ObjectProxy) containing the object graph loaded from a YAML file. Returns ------- graph : dict or object The dictionary or object resulting after ...
[ "Instantiate", "all", "ObjectProxy", "objects", "in", "a", "nested", "hierarchy", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/config.py#L164-L203
hannes-brt/hebel
hebel/config.py
multi_constructor
def multi_constructor(loader, tag_suffix, node): """ Constructor function passed to PyYAML telling it how to construct objects from argument descriptions. See PyYAML documentation for details on the call signature. """ yaml_src = yaml.serialize(node) mapping = loader.construct_mapping(node) ...
python
def multi_constructor(loader, tag_suffix, node): """ Constructor function passed to PyYAML telling it how to construct objects from argument descriptions. See PyYAML documentation for details on the call signature. """ yaml_src = yaml.serialize(node) mapping = loader.construct_mapping(node) ...
[ "def", "multi_constructor", "(", "loader", ",", "tag_suffix", ",", "node", ")", ":", "yaml_src", "=", "yaml", ".", "serialize", "(", "node", ")", "mapping", "=", "loader", ".", "construct_mapping", "(", "node", ")", "if", "'.'", "not", "in", "tag_suffix", ...
Constructor function passed to PyYAML telling it how to construct objects from argument descriptions. See PyYAML documentation for details on the call signature.
[ "Constructor", "function", "passed", "to", "PyYAML", "telling", "it", "how", "to", "construct", "objects", "from", "argument", "descriptions", ".", "See", "PyYAML", "documentation", "for", "details", "on", "the", "call", "signature", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/config.py#L311-L326
hannes-brt/hebel
hebel/config.py
multi_constructor_pkl
def multi_constructor_pkl(loader, tag_suffix, node): """ Constructor function passed to PyYAML telling it how to load objects from paths to .pkl files. See PyYAML documentation for details on the call signature. """ mapping = loader.construct_yaml_str(node) if tag_suffix != "" and tag_suffi...
python
def multi_constructor_pkl(loader, tag_suffix, node): """ Constructor function passed to PyYAML telling it how to load objects from paths to .pkl files. See PyYAML documentation for details on the call signature. """ mapping = loader.construct_yaml_str(node) if tag_suffix != "" and tag_suffi...
[ "def", "multi_constructor_pkl", "(", "loader", ",", "tag_suffix", ",", "node", ")", ":", "mapping", "=", "loader", ".", "construct_yaml_str", "(", "node", ")", "if", "tag_suffix", "!=", "\"\"", "and", "tag_suffix", "!=", "u\"\"", ":", "raise", "AssertionError"...
Constructor function passed to PyYAML telling it how to load objects from paths to .pkl files. See PyYAML documentation for details on the call signature.
[ "Constructor", "function", "passed", "to", "PyYAML", "telling", "it", "how", "to", "load", "objects", "from", "paths", "to", ".", "pkl", "files", ".", "See", "PyYAML", "documentation", "for", "details", "on", "the", "call", "signature", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/config.py#L329-L343
hannes-brt/hebel
hebel/config.py
initialize
def initialize(): """ Initialize the configuration system by installing YAML handlers. Automatically done on first call to load() specified in this file. """ global is_initialized # Add the custom multi-constructor yaml.add_multi_constructor('!obj:', multi_constructor) yaml.add_multi_con...
python
def initialize(): """ Initialize the configuration system by installing YAML handlers. Automatically done on first call to load() specified in this file. """ global is_initialized # Add the custom multi-constructor yaml.add_multi_constructor('!obj:', multi_constructor) yaml.add_multi_con...
[ "def", "initialize", "(", ")", ":", "global", "is_initialized", "# Add the custom multi-constructor", "yaml", ".", "add_multi_constructor", "(", "'!obj:'", ",", "multi_constructor", ")", "yaml", ".", "add_multi_constructor", "(", "'!pkl:'", ",", "multi_constructor_pkl", ...
Initialize the configuration system by installing YAML handlers. Automatically done on first call to load() specified in this file.
[ "Initialize", "the", "configuration", "system", "by", "installing", "YAML", "handlers", ".", "Automatically", "done", "on", "first", "call", "to", "load", "()", "specified", "in", "this", "file", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/config.py#L367-L388
hannes-brt/hebel
hebel/config.py
ObjectProxy.instantiate
def instantiate(self): """ Instantiate this object with the supplied parameters in `self.kwds`, or if already instantiated, return the cached instance. """ if self.instance is None: self.instance = checked_call(self.cls, self.kwds) #endif try: ...
python
def instantiate(self): """ Instantiate this object with the supplied parameters in `self.kwds`, or if already instantiated, return the cached instance. """ if self.instance is None: self.instance = checked_call(self.cls, self.kwds) #endif try: ...
[ "def", "instantiate", "(", "self", ")", ":", "if", "self", ".", "instance", "is", "None", ":", "self", ".", "instance", "=", "checked_call", "(", "self", ".", "cls", ",", "self", ".", "kwds", ")", "#endif", "try", ":", "self", ".", "instance", ".", ...
Instantiate this object with the supplied parameters in `self.kwds`, or if already instantiated, return the cached instance.
[ "Instantiate", "this", "object", "with", "the", "supplied", "parameters", "in", "self", ".", "kwds", "or", "if", "already", "instantiated", "return", "the", "cached", "instance", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/config.py#L232-L244
hannes-brt/hebel
hebel/layers/linear_regression_layer.py
LinearRegressionLayer.feed_forward
def feed_forward(self, input_data, prediction=False): """Propagate forward through the layer. **Parameters:** input_data : ``GPUArray`` Inpute data to compute activations for. prediction : bool, optional Whether to use prediction model. Only relevant when using...
python
def feed_forward(self, input_data, prediction=False): """Propagate forward through the layer. **Parameters:** input_data : ``GPUArray`` Inpute data to compute activations for. prediction : bool, optional Whether to use prediction model. Only relevant when using...
[ "def", "feed_forward", "(", "self", ",", "input_data", ",", "prediction", "=", "False", ")", ":", "if", "input_data", ".", "shape", "[", "1", "]", "!=", "self", ".", "W", ".", "shape", "[", "0", "]", ":", "raise", "ValueError", "(", "'Number of outputs...
Propagate forward through the layer. **Parameters:** input_data : ``GPUArray`` Inpute data to compute activations for. prediction : bool, optional Whether to use prediction model. Only relevant when using dropout. If true, then weights are multiplied by ...
[ "Propagate", "forward", "through", "the", "layer", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/layers/linear_regression_layer.py#L113-L140
dwkim78/upsilon
upsilon/extract_features/period_LS_pyfftw.py
fasper
def fasper(x, y, ofac, hifac, n_threads, MACC=4): """ Given abscissas x (which need not be equally spaced) and ordinates y, and given a desired oversampling factor ofac (a typical value being 4 or larger). this routine creates an array wk1 with a sequence of nout increasing frequencies (not angular ...
python
def fasper(x, y, ofac, hifac, n_threads, MACC=4): """ Given abscissas x (which need not be equally spaced) and ordinates y, and given a desired oversampling factor ofac (a typical value being 4 or larger). this routine creates an array wk1 with a sequence of nout increasing frequencies (not angular ...
[ "def", "fasper", "(", "x", ",", "y", ",", "ofac", ",", "hifac", ",", "n_threads", ",", "MACC", "=", "4", ")", ":", "#Check dimensions of input arrays", "n", "=", "long", "(", "len", "(", "x", ")", ")", "if", "n", "!=", "len", "(", "y", ")", ":", ...
Given abscissas x (which need not be equally spaced) and ordinates y, and given a desired oversampling factor ofac (a typical value being 4 or larger). this routine creates an array wk1 with a sequence of nout increasing frequencies (not angular frequencies) up to hifac times the "average" Nyquist frequ...
[ "Given", "abscissas", "x", "(", "which", "need", "not", "be", "equally", "spaced", ")", "and", "ordinates", "y", "and", "given", "a", "desired", "oversampling", "factor", "ofac", "(", "a", "typical", "value", "being", "4", "or", "larger", ")", ".", "this...
train
https://github.com/dwkim78/upsilon/blob/5f381453f26582ef56e62fb8fed7317ce67861af/upsilon/extract_features/period_LS_pyfftw.py#L95-L232
rix0rrr/gcl
gcl/runtime.py
Tuple.get_no_validate
def get_no_validate(self, key): """Return an item without validating the schema.""" x, env = self.get_thunk_env(key) # Check if this is a Thunk that needs to be lazily evaluated before we # return it. if isinstance(x, framework.Thunk): x = framework.eval(x, env) return x
python
def get_no_validate(self, key): """Return an item without validating the schema.""" x, env = self.get_thunk_env(key) # Check if this is a Thunk that needs to be lazily evaluated before we # return it. if isinstance(x, framework.Thunk): x = framework.eval(x, env) return x
[ "def", "get_no_validate", "(", "self", ",", "key", ")", ":", "x", ",", "env", "=", "self", ".", "get_thunk_env", "(", "key", ")", "# Check if this is a Thunk that needs to be lazily evaluated before we", "# return it.", "if", "isinstance", "(", "x", ",", "framework"...
Return an item without validating the schema.
[ "Return", "an", "item", "without", "validating", "the", "schema", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/runtime.py#L63-L72
rix0rrr/gcl
gcl/runtime.py
Tuple.env
def env(self, current_scope): """Return an environment that will look up in current_scope for keys in this tuple, and the parent env otherwise. """ return self.__env_cache.get( current_scope.ident, framework.Environment, current_scope, names=self.keys(), p...
python
def env(self, current_scope): """Return an environment that will look up in current_scope for keys in this tuple, and the parent env otherwise. """ return self.__env_cache.get( current_scope.ident, framework.Environment, current_scope, names=self.keys(), p...
[ "def", "env", "(", "self", ",", "current_scope", ")", ":", "return", "self", ".", "__env_cache", ".", "get", "(", "current_scope", ".", "ident", ",", "framework", ".", "Environment", ",", "current_scope", ",", "names", "=", "self", ".", "keys", "(", ")",...
Return an environment that will look up in current_scope for keys in this tuple, and the parent env otherwise.
[ "Return", "an", "environment", "that", "will", "look", "up", "in", "current_scope", "for", "keys", "in", "this", "tuple", "and", "the", "parent", "env", "otherwise", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/runtime.py#L77-L85
rix0rrr/gcl
gcl/runtime.py
Tuple.get_thunk_env
def get_thunk_env(self, k): """Return the thunk AND environment for validating it in for the given key. There might be different envs in case the thunk comes from a different (composed) tuple. If the thunk needs its environment bound on retrieval, that will be done here. """ if k not in self.__item...
python
def get_thunk_env(self, k): """Return the thunk AND environment for validating it in for the given key. There might be different envs in case the thunk comes from a different (composed) tuple. If the thunk needs its environment bound on retrieval, that will be done here. """ if k not in self.__item...
[ "def", "get_thunk_env", "(", "self", ",", "k", ")", ":", "if", "k", "not", "in", "self", ".", "__items", ":", "raise", "exceptions", ".", "EvaluationError", "(", "'Unknown key: %r in tuple %r'", "%", "(", "k", ",", "self", ")", ")", "x", "=", "self", "...
Return the thunk AND environment for validating it in for the given key. There might be different envs in case the thunk comes from a different (composed) tuple. If the thunk needs its environment bound on retrieval, that will be done here.
[ "Return", "the", "thunk", "AND", "environment", "for", "validating", "it", "in", "for", "the", "given", "key", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/runtime.py#L107-L122
rix0rrr/gcl
gcl/runtime.py
Tuple.attach_schema
def attach_schema(self, schem): """Add a tuple schema to this object (externally imposed)""" self.tuple_schema = schema.AndSchema.make(self.tuple_schema, schem)
python
def attach_schema(self, schem): """Add a tuple schema to this object (externally imposed)""" self.tuple_schema = schema.AndSchema.make(self.tuple_schema, schem)
[ "def", "attach_schema", "(", "self", ",", "schem", ")", ":", "self", ".", "tuple_schema", "=", "schema", ".", "AndSchema", ".", "make", "(", "self", ".", "tuple_schema", ",", "schem", ")" ]
Add a tuple schema to this object (externally imposed)
[ "Add", "a", "tuple", "schema", "to", "this", "object", "(", "externally", "imposed", ")" ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/runtime.py#L146-L148
rix0rrr/gcl
gcl/runtime.py
Tuple.get_schema_spec
def get_schema_spec(self, key): """Return the evaluated schema expression from a subkey.""" member_node = self._ast_node.member.get(key, None) if not member_node: return schema.AnySchema() s = framework.eval(member_node.member_schema, self.env(self)) if not isinstance(s, schema.Schema): ...
python
def get_schema_spec(self, key): """Return the evaluated schema expression from a subkey.""" member_node = self._ast_node.member.get(key, None) if not member_node: return schema.AnySchema() s = framework.eval(member_node.member_schema, self.env(self)) if not isinstance(s, schema.Schema): ...
[ "def", "get_schema_spec", "(", "self", ",", "key", ")", ":", "member_node", "=", "self", ".", "_ast_node", ".", "member", ".", "get", "(", "key", ",", "None", ")", "if", "not", "member_node", ":", "return", "schema", ".", "AnySchema", "(", ")", "s", ...
Return the evaluated schema expression from a subkey.
[ "Return", "the", "evaluated", "schema", "expression", "from", "a", "subkey", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/runtime.py#L150-L159
rix0rrr/gcl
gcl/runtime.py
Tuple.get_required_fields
def get_required_fields(self): """Return the names of fields that are required according to the schema.""" return [m.name for m in self._ast_node.members if m.member_schema.required]
python
def get_required_fields(self): """Return the names of fields that are required according to the schema.""" return [m.name for m in self._ast_node.members if m.member_schema.required]
[ "def", "get_required_fields", "(", "self", ")", ":", "return", "[", "m", ".", "name", "for", "m", "in", "self", ".", "_ast_node", ".", "members", "if", "m", ".", "member_schema", ".", "required", "]" ]
Return the names of fields that are required according to the schema.
[ "Return", "the", "names", "of", "fields", "that", "are", "required", "according", "to", "the", "schema", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/runtime.py#L161-L163
rix0rrr/gcl
gcl/runtime.py
CompositeTuple.get_member_node
def get_member_node(self, key): """Return the AST node for the given member, from the first tuple that serves it.""" for tup, _ in self.lookups: if key in tup: return tup.get_member_node(key) raise RuntimeError('Key not found in composite tuple: %r' % key)
python
def get_member_node(self, key): """Return the AST node for the given member, from the first tuple that serves it.""" for tup, _ in self.lookups: if key in tup: return tup.get_member_node(key) raise RuntimeError('Key not found in composite tuple: %r' % key)
[ "def", "get_member_node", "(", "self", ",", "key", ")", ":", "for", "tup", ",", "_", "in", "self", ".", "lookups", ":", "if", "key", "in", "tup", ":", "return", "tup", ".", "get_member_node", "(", "key", ")", "raise", "RuntimeError", "(", "'Key not fou...
Return the AST node for the given member, from the first tuple that serves it.
[ "Return", "the", "AST", "node", "for", "the", "given", "member", "from", "the", "first", "tuple", "that", "serves", "it", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/runtime.py#L283-L288
rix0rrr/gcl
gcl/runtime.py
CompositeTuple.exportable_keys
def exportable_keys(self): """Return a list of keys that are exportable from this tuple. Returns all keys that are not private in any of the tuples. """ keys = collections.defaultdict(list) for tup in self._tuples: for key, private in tup._keys_and_privacy().items(): keys[key].append(...
python
def exportable_keys(self): """Return a list of keys that are exportable from this tuple. Returns all keys that are not private in any of the tuples. """ keys = collections.defaultdict(list) for tup in self._tuples: for key, private in tup._keys_and_privacy().items(): keys[key].append(...
[ "def", "exportable_keys", "(", "self", ")", ":", "keys", "=", "collections", ".", "defaultdict", "(", "list", ")", "for", "tup", "in", "self", ".", "_tuples", ":", "for", "key", ",", "private", "in", "tup", ".", "_keys_and_privacy", "(", ")", ".", "ite...
Return a list of keys that are exportable from this tuple. Returns all keys that are not private in any of the tuples.
[ "Return", "a", "list", "of", "keys", "that", "are", "exportable", "from", "this", "tuple", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/runtime.py#L290-L299
rix0rrr/gcl
gcl/runtime.py
OnDiskFiles.resolve
def resolve(self, current_file, rel_path): """Search the filesystem.""" search_path = [path.dirname(current_file)] + self.search_path target_path = None for search in search_path: if self.exists(path.join(search, rel_path)): target_path = path.normpath(path.join(search, rel_path)) ...
python
def resolve(self, current_file, rel_path): """Search the filesystem.""" search_path = [path.dirname(current_file)] + self.search_path target_path = None for search in search_path: if self.exists(path.join(search, rel_path)): target_path = path.normpath(path.join(search, rel_path)) ...
[ "def", "resolve", "(", "self", ",", "current_file", ",", "rel_path", ")", ":", "search_path", "=", "[", "path", ".", "dirname", "(", "current_file", ")", "]", "+", "self", ".", "search_path", "target_path", "=", "None", "for", "search", "in", "search_path"...
Search the filesystem.
[ "Search", "the", "filesystem", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/runtime.py#L312-L326
rix0rrr/gcl
gcl/runtime.py
InMemoryFiles.resolve
def resolve(self, current_file, rel_path): """Search the filesystem.""" p = path.join(path.dirname(current_file), rel_path) if p not in self.file_dict: raise RuntimeError('No such fake file: %r' % p) return p, p
python
def resolve(self, current_file, rel_path): """Search the filesystem.""" p = path.join(path.dirname(current_file), rel_path) if p not in self.file_dict: raise RuntimeError('No such fake file: %r' % p) return p, p
[ "def", "resolve", "(", "self", ",", "current_file", ",", "rel_path", ")", ":", "p", "=", "path", ".", "join", "(", "path", ".", "dirname", "(", "current_file", ")", ",", "rel_path", ")", "if", "p", "not", "in", "self", ".", "file_dict", ":", "raise",...
Search the filesystem.
[ "Search", "the", "filesystem", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/runtime.py#L344-L349
hannes-brt/hebel
hebel/utils/call_check.py
check_call_arguments
def check_call_arguments(to_call, kwargs): """ Check the call signature against a dictionary of proposed arguments, raising an informative exception in the case of mismatch. Parameters ---------- to_call : class or callable Function or class to examine (in the case of classes, the ...
python
def check_call_arguments(to_call, kwargs): """ Check the call signature against a dictionary of proposed arguments, raising an informative exception in the case of mismatch. Parameters ---------- to_call : class or callable Function or class to examine (in the case of classes, the ...
[ "def", "check_call_arguments", "(", "to_call", ",", "kwargs", ")", ":", "if", "'self'", "in", "kwargs", ".", "keys", "(", ")", ":", "raise", "TypeError", "(", "\"Your dictionary includes an entry for 'self', \"", "\"which is just asking for trouble\"", ")", "orig_to_cal...
Check the call signature against a dictionary of proposed arguments, raising an informative exception in the case of mismatch. Parameters ---------- to_call : class or callable Function or class to examine (in the case of classes, the constructor call signature is analyzed) kwargs :...
[ "Check", "the", "call", "signature", "against", "a", "dictionary", "of", "proposed", "arguments", "raising", "an", "informative", "exception", "in", "the", "case", "of", "mismatch", "." ]
train
https://github.com/hannes-brt/hebel/blob/1e2c3a9309c2646103901b26a55be4e312dd5005/hebel/utils/call_check.py#L26-L96
dwkim78/upsilon
upsilon/predict/predict.py
predict
def predict(rf_model, features): """ Return label and probability estimated. Parameters ---------- rf_model : sklearn.ensemble.RandomForestClassifier The UPSILoN random forests model. features : array_like A list of features estimated by UPSILoN. Returns ------- lab...
python
def predict(rf_model, features): """ Return label and probability estimated. Parameters ---------- rf_model : sklearn.ensemble.RandomForestClassifier The UPSILoN random forests model. features : array_like A list of features estimated by UPSILoN. Returns ------- lab...
[ "def", "predict", "(", "rf_model", ",", "features", ")", ":", "import", "numpy", "as", "np", "from", "upsilon", ".", "extract_features", ".", "feature_set", "import", "get_feature_set", "feature_set", "=", "get_feature_set", "(", ")", "# Grab only necessary features...
Return label and probability estimated. Parameters ---------- rf_model : sklearn.ensemble.RandomForestClassifier The UPSILoN random forests model. features : array_like A list of features estimated by UPSILoN. Returns ------- label : str A predicted label (i.e. clas...
[ "Return", "label", "and", "probability", "estimated", "." ]
train
https://github.com/dwkim78/upsilon/blob/5f381453f26582ef56e62fb8fed7317ce67861af/upsilon/predict/predict.py#L4-L50
rix0rrr/gcl
gcl/functions.py
fmt
def fmt(str, args=None, env=None): """fmt(string, [tuple]) -> string Interpolate a string, replacing {patterns} with the variables with the same name. If given a tuple, use the keys from the tuple to substitute. If not given a tuple, uses the current environment as the variable source. """ # Normally, we'd...
python
def fmt(str, args=None, env=None): """fmt(string, [tuple]) -> string Interpolate a string, replacing {patterns} with the variables with the same name. If given a tuple, use the keys from the tuple to substitute. If not given a tuple, uses the current environment as the variable source. """ # Normally, we'd...
[ "def", "fmt", "(", "str", ",", "args", "=", "None", ",", "env", "=", "None", ")", ":", "# Normally, we'd just call str.format(**args), but we only want to evaluate", "# values from the tuple which are actually used in the string interpolation,", "# so we use proxy objects.", "# If ...
fmt(string, [tuple]) -> string Interpolate a string, replacing {patterns} with the variables with the same name. If given a tuple, use the keys from the tuple to substitute. If not given a tuple, uses the current environment as the variable source.
[ "fmt", "(", "string", "[", "tuple", "]", ")", "-", ">", "string" ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/functions.py#L47-L61
rix0rrr/gcl
gcl/functions.py
compose_all
def compose_all(tups): """Compose all given tuples together.""" from . import ast # I weep for humanity return functools.reduce(lambda x, y: x.compose(y), map(ast.make_tuple, tups), ast.make_tuple({}))
python
def compose_all(tups): """Compose all given tuples together.""" from . import ast # I weep for humanity return functools.reduce(lambda x, y: x.compose(y), map(ast.make_tuple, tups), ast.make_tuple({}))
[ "def", "compose_all", "(", "tups", ")", ":", "from", ".", "import", "ast", "# I weep for humanity", "return", "functools", ".", "reduce", "(", "lambda", "x", ",", "y", ":", "x", ".", "compose", "(", "y", ")", ",", "map", "(", "ast", ".", "make_tuple", ...
Compose all given tuples together.
[ "Compose", "all", "given", "tuples", "together", "." ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/functions.py#L71-L74
rix0rrr/gcl
gcl/functions.py
has_key
def has_key(tup, key): """has(tuple, string) -> bool Return whether a given tuple has a key and the key is bound. """ if isinstance(tup, framework.TupleLike): return tup.is_bound(key) if isinstance(tup, dict): return key in tup if isinstance(tup, list): if not isinstance(key, int): raise ...
python
def has_key(tup, key): """has(tuple, string) -> bool Return whether a given tuple has a key and the key is bound. """ if isinstance(tup, framework.TupleLike): return tup.is_bound(key) if isinstance(tup, dict): return key in tup if isinstance(tup, list): if not isinstance(key, int): raise ...
[ "def", "has_key", "(", "tup", ",", "key", ")", ":", "if", "isinstance", "(", "tup", ",", "framework", ".", "TupleLike", ")", ":", "return", "tup", ".", "is_bound", "(", "key", ")", "if", "isinstance", "(", "tup", ",", "dict", ")", ":", "return", "k...
has(tuple, string) -> bool Return whether a given tuple has a key and the key is bound.
[ "has", "(", "tuple", "string", ")", "-", ">", "bool" ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/functions.py#L85-L98
rix0rrr/gcl
gcl/functions.py
flatten
def flatten(list_of_lists): """flatten([[A]]) -> [A] Flatten a list of lists. """ ret = [] for lst in list_of_lists: if not isinstance(lst, list): raise ValueError('%r is not a list' % lst) ret.extend(lst) return ret
python
def flatten(list_of_lists): """flatten([[A]]) -> [A] Flatten a list of lists. """ ret = [] for lst in list_of_lists: if not isinstance(lst, list): raise ValueError('%r is not a list' % lst) ret.extend(lst) return ret
[ "def", "flatten", "(", "list_of_lists", ")", ":", "ret", "=", "[", "]", "for", "lst", "in", "list_of_lists", ":", "if", "not", "isinstance", "(", "lst", ",", "list", ")", ":", "raise", "ValueError", "(", "'%r is not a list'", "%", "lst", ")", "ret", "....
flatten([[A]]) -> [A] Flatten a list of lists.
[ "flatten", "(", "[[", "A", "]]", ")", "-", ">", "[", "A", "]" ]
train
https://github.com/rix0rrr/gcl/blob/4e3bccc978a9c60aaaffd20f6f291c4d23775cdf/gcl/functions.py#L101-L111
spacetelescope/acstools
acstools/utils_calib.py
extract_dark
def extract_dark(prihdr, scihdu): """Extract superdark data from ``DARKFILE`` or ``DRKCFILE``. Parameters ---------- prihdr : obj FITS primary header HDU. scihdu : obj Extension HDU of the science image. This is only used to extract subarray data. Returns ------- ...
python
def extract_dark(prihdr, scihdu): """Extract superdark data from ``DARKFILE`` or ``DRKCFILE``. Parameters ---------- prihdr : obj FITS primary header HDU. scihdu : obj Extension HDU of the science image. This is only used to extract subarray data. Returns ------- ...
[ "def", "extract_dark", "(", "prihdr", ",", "scihdu", ")", ":", "if", "prihdr", ".", "get", "(", "'PCTECORR'", ",", "'OMIT'", ")", "==", "'COMPLETE'", ":", "darkfile", "=", "prihdr", ".", "get", "(", "'DRKCFILE'", ",", "'N/A'", ")", "else", ":", "darkfi...
Extract superdark data from ``DARKFILE`` or ``DRKCFILE``. Parameters ---------- prihdr : obj FITS primary header HDU. scihdu : obj Extension HDU of the science image. This is only used to extract subarray data. Returns ------- dark : ndarray or `None` Super...
[ "Extract", "superdark", "data", "from", "DARKFILE", "or", "DRKCFILE", "." ]
train
https://github.com/spacetelescope/acstools/blob/bbf8dd080cefcbf88529ec87c420f9e1b8002554/acstools/utils_calib.py#L25-L73
spacetelescope/acstools
acstools/utils_calib.py
extract_flash
def extract_flash(prihdr, scihdu): """Extract postflash data from ``FLSHFILE``. Parameters ---------- prihdr : obj FITS primary header HDU. scihdu : obj Extension HDU of the science image. This is only used to extract subarray data. Returns ------- flash : ndar...
python
def extract_flash(prihdr, scihdu): """Extract postflash data from ``FLSHFILE``. Parameters ---------- prihdr : obj FITS primary header HDU. scihdu : obj Extension HDU of the science image. This is only used to extract subarray data. Returns ------- flash : ndar...
[ "def", "extract_flash", "(", "prihdr", ",", "scihdu", ")", ":", "flshfile", "=", "prihdr", ".", "get", "(", "'FLSHFILE'", ",", "'N/A'", ")", "flashsta", "=", "prihdr", ".", "get", "(", "'FLASHSTA'", ",", "'N/A'", ")", "flashdur", "=", "prihdr", ".", "g...
Extract postflash data from ``FLSHFILE``. Parameters ---------- prihdr : obj FITS primary header HDU. scihdu : obj Extension HDU of the science image. This is only used to extract subarray data. Returns ------- flash : ndarray or `None` Postflash, if any. S...
[ "Extract", "postflash", "data", "from", "FLSHFILE", "." ]
train
https://github.com/spacetelescope/acstools/blob/bbf8dd080cefcbf88529ec87c420f9e1b8002554/acstools/utils_calib.py#L76-L120