[SciPy-User] scipy.linalg.blas before 0.12.0

Pauli Virtanen pav at iki.fi
Mon Mar 24 16:17:59 EDT 2014


24.03.2014 21:23, Skipper Seabold kirjoitti:
> More feeling around in the dark. The docs [1] state that the
> low-level functions scipy.linalg.blas are new in 0.12.0.

They're new as public, documented functions.

Writing code targeting also earlier Scipy versions is possible in
principle.

> However,
> 
>>>> import scipy as sp sp.__version__
> '0.9.0'
>>>> import scipy.linalg.blas 
>>>> scipy.linalg.blas.cblas.dgemm._cpointer
> <PyCObject object at 0x2a94788>

This is backward and forward compatible:

    dgemm, = get_blas_funcs(['gemm',], [np.array([1.0])])

Note that `.cblas` is not available at all on all platforms, and the
functions it contains vary with Scipy versions. Also, both `.cblas`
and `.fblas` submodules are deprecated.

-- 
Pauli Virtanen




More information about the SciPy-User mailing list