| Line 36... |
Line 36... |
# LAPACK functions with different real and complex versions
|
# LAPACK functions with different real and complex versions
|
if petscconf.SCALAR == 'real':
|
if petscconf.SCALAR == 'real':
|
l += ['orghr','syevr','sygvd','ormlq']
|
l += ['orghr','syevr','sygvd','ormlq']
|
if petscconf.PRECISION == 'single':
|
if petscconf.PRECISION == 'single':
|
prefix = 's'
|
prefix = 's'
|
|
if petscconf.PRECISION == '__float128':
|
|
prefix = 'q'
|
else:
|
else:
|
prefix = 'd'
|
prefix = 'd'
|
else:
|
else:
|
l += ['unghr','heevr','hegvd','unmlq','ungtr','hetrd']
|
l += ['unghr','heevr','hegvd','unmlq','ungtr','hetrd']
|
if petscconf.PRECISION == 'single':
|
if petscconf.PRECISION == 'single':
|
prefix = 'c'
|
prefix = 'c'
|
|
if petscconf.PRECISION == '__float128':
|
|
prefix = 'w'
|
else:
|
else:
|
prefix = 'z'
|
prefix = 'z'
|
|
|
# add prefix to LAPACK names
|
# add prefix to LAPACK names
|
functions = []
|
functions = []
|
| Line 53... |
Line 57... |
functions.append(prefix + i)
|
functions.append(prefix + i)
|
|
|
# LAPACK functions which are always used in real version
|
# LAPACK functions which are always used in real version
|
if petscconf.PRECISION == 'single':
|
if petscconf.PRECISION == 'single':
|
functions += ['sstevr','sbdsdc','ssteqr','sorgtr','ssytrd','slamch','slag2']
|
functions += ['sstevr','sbdsdc','ssteqr','sorgtr','ssytrd','slamch','slag2']
|
|
elif petscconf.PRECISION == '__float128':
|
|
functions += ['qstevr','qbdsdc','qsteqr','qorgtr','qsytrd','qlamch','qlag2']
|
else:
|
else:
|
functions += ['dstevr','dbdsdc','dsteqr','dorgtr','dsytrd','dlamch','dlag2']
|
functions += ['dstevr','dbdsdc','dsteqr','dorgtr','dsytrd','dlamch','dlag2']
|
|
|
# check for all functions at once
|
# check for all functions at once
|
all = []
|
all = []
|