How to use the blis.py.dotv function in blis

To help you get started, we’ve selected a few blis examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github explosion / cython-blis / tests / test_dotv.py View on Github external
def test_memoryview_double_noconj(A, B):
    if len(A) < len(B):
        B = B[:len(A)]
    else:
        A = A[:len(B)]
    assume(A is not None)
    assume(B is not None)
    numpy_result = A.dot(B)
    result = dotv(A, B)
    assert_allclose([numpy_result], result, atol=1e-3, rtol=1e-3)
github explosion / cython-blis / tests / test_dotv.py View on Github external
def test_memoryview_float_noconj(A, B):
    if len(A) < len(B):
        B = B[:len(A)]
    else:
        A = A[:len(B)]
    assume(A is not None)
    assume(B is not None)
    numpy_result = A.dot(B)
    result = dotv(A, B)
    assert_allclose([numpy_result], result, atol=1e-3, rtol=1e-3)

blis

The Blis BLAS-like linear algebra library, as a self-contained C-extension.

BSD-2-Clause
Latest version published 2 months ago

Package Health Score

87 / 100
Full package analysis