Skip to content

Instantly share code, notes, and snippets.

@matthew-brett
Created August 31, 2015 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthew-brett/40edffcf65495fe2cc62 to your computer and use it in GitHub Desktop.
Save matthew-brett/40edffcf65495fe2cc62 to your computer and use it in GitHub Desktop.
import numpy as np
import scipy.linalg as spl
blas_routines = [
'dot',
'nrm2',
'asum',
# 'idamax',
'swap',
'copy',
'axpy',
'scal',
'rot',
'rotg',
'rotmg',
'rotm',
'gemv',
'trmv',
#'trsv',
'symv',
'ger',
#'syr',
#'syr2',
'gemm',
'symm',
#'trmm',
#'trsm',
'syrk',
'syr2k']
blas_funcs = spl.get_blas_funcs(blas_routines, np.array([1.0]))
lapack_routines = [
'getrf',
'potrf',
'potrs',
'gesdd',
'geqrf']
lapack_funcs = spl.get_lapack_funcs(lapack_routines, np.array([1.0]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment