Skip to content

Commit 65b1ec6

Browse files
committed
fypp: template linalg integer sizes
1 parent c3a8177 commit 65b1ec6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/common.fypp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474
$:"s" if cmplx=="c" else "d" if cmplx=="z" else "x" if cmplx=="y" else "q" if cmplx=="w" else "ERROR"
7575
#:enddef
7676

77+
#! BLAS/LAPACK/Linear Algebra Integer Kinds
78+
#:set LINALG_INT_KINDS = ["ilp","ilp64"]
79+
#:set LINALG_INT_TYPES = ["integer({})".format(k) for k in LINALG_INT_KINDS]
80+
#:set LINALG_INT_KINDS_TYPES = list(zip(LINALG_INT_KINDS, LINALG_INT_TYPES))
81+
7782
#! Complex types to be considered during templating
7883
#:set CMPLX_TYPES = ["complex({})".format(k) for k in CMPLX_KINDS]
7984
#:set CMPLX_SUFFIX = ["c{}".format(k) for k in CMPLX_KINDS]

0 commit comments

Comments
 (0)