# # Author: Pearu Peterson, March 2002 #
# 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. except ImportError: _flinalg = None # from numpy.distutils.misc_util import PostponedException # _flinalg = PostponedException() # print _flinalg.__doc__ has_column_major_storage = lambda a:0
"""Return optimal available _flinalg function objects with names. arrays are used to determine optimal prefix.""" t = 'd' else: required_prefix = 'd' # Some routines may require special treatment. # Handle them here before the default lookup.
# Default lookup: else: suffix1,suffix2 = '_r','_c'
getattr(_flinalg,func_name+suffix2,None)) |