Skip to content

Commit

Permalink
MAINT: linalg: fortran lapack/blas are always available, cblas/clapac…
Browse files Browse the repository at this point in the history
…k are always only partial

Remove some dead code substituting cblas/lapack with fblas/lapack if one
of them is not available.  This doesn't actually do anything, since the
Fortran BLAS/LAPACK is always available. Moreover the C blas/lapack are
only partial wrappers.
  • Loading branch information
pv committed Nov 28, 2012
1 parent 96b0343 commit 067de33
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions scipy/linalg/blas.py
Expand Up @@ -107,19 +107,11 @@

import numpy as _np

# The following ensures that possibly missing flavor (C or Fortran) is
# replaced with the available one. If none is available, exception
# is raised at the first attempt to use the resources.

from scipy.linalg import _fblas
try:
from scipy.linalg import _cblas
except ImportError:
_cblas = None
if _cblas is None:
_cblas = _fblas
elif hasattr(_fblas, 'empty_module'):
_fblas = _cblas

# Expose all functions (only fblas --- cblas is an implementation detail)
empty_module = None
Expand Down
8 changes: 0 additions & 8 deletions scipy/linalg/lapack.py
Expand Up @@ -200,9 +200,6 @@

__all__ = ['get_lapack_funcs']

# The following ensures that possibly missing flavor (C or Fortran) is
# replaced with the available one. If none is available, exception
# is raised at the first attempt to use the resources.
from blas import _get_funcs

# Backward compatibility:
Expand All @@ -214,11 +211,6 @@
except ImportError:
_clapack = None

if _clapack is None:
_clapack = _flapack
elif hasattr(_flapack,'empty_module'):
_flapack = _clapack

# Expose all functions (only flapack --- clapack is an implementation detail)
empty_module = None
from scipy.linalg._flapack import *
Expand Down

0 comments on commit 067de33

Please sign in to comment.