parameters: (names, arrays, dtype,
                 lib_name, fmodule, cmodule,
                 fmodule_name, cmodule_name, alias)
docstring: Return available BLAS/LAPACK functions.
  
      Used also in lapack.py. See get_blas_funcs for docstring.
docstring_summary: Return available BLAS/LAPACK functions.
docstring_tokens: Return available BLAS / LAPACK functions .
function: def _get_funcs(names, arrays, dtype,
                 lib_name, fmodule, cmodule,
                 fmodule_name, cmodule_name, alias):
      """
      Return available BLAS/LAPACK functions.
  
      Used also in lapack.py. See get_blas_funcs for docstring.
      """
  
      funcs = []
      unpack = False
      dtype = _np.dtype(dtype)
      module1 = (cmodule, cmodule_name)
      module2 = (fmodule, fmodule_name)
  
      if isinstance(names, str):
          names = (names,)
          unpack = True
  
      prefix, dtype, prefer_fortran = find_best_blas_type(arrays, dtype)
  
      if prefer_fortran:
          module1, module2 = module2, module1
  
      for i, name in enumerate(names):
          func_name = prefix + name
          func_name = alias.get(func_name, func_name)
          func = getattr(module1[0], func_name, None)
          module_name = module1[1]
          if func is None:
              func = getattr(module2[0], func_name, None)
              module_name = module2[1]
          if func is None:
              raise ValueError(
                  '%s function %s could not be found' % (lib_name, func_name))
          func.module_name, func.typecode = module_name, prefix
          func.dtype = dtype
          func.prefix = prefix  # Backward compatibility
          funcs.append(func)
  
      if unpack:
          return funcs[0]
      else:
          return funcs
function_tokens: def _get_funcs ( names , arrays , dtype , lib_name , fmodule , cmodule , fmodule_name , cmodule_name , alias ) : funcs = [ ] unpack = False dtype = _np . dtype ( dtype ) module1 = ( cmodule , cmodule_name ) module2 = ( fmodule , fmodule_name ) if isinstance ( names , str ) : names = ( names , ) unpack = True prefix , dtype , prefer_fortran = find_best_blas_type ( arrays , dtype ) if prefer_fortran : module1 , module2 = module2 , module1 for i , name in enumerate ( names ) : func_name = prefix + name func_name = alias . get ( func_name , func_name ) func = getattr ( module1 [ 0 ] , func_name , None ) module_name = module1 [ 1 ] if func is None : func = getattr ( module2 [ 0 ] , func_name , None ) module_name = module2 [ 1 ] if func is None : raise ValueError ( '%s function %s could not be found' % ( lib_name , func_name ) ) func . module_name , func . typecode = module_name , prefix func . dtype = dtype func . prefix = prefix # Backward compatibility funcs . append ( func ) if unpack : return funcs [ 0 ] else : return funcs