Skip to content

Commit c8d94a3

Browse files
committed
rollback on submodules
1 parent a21d1e8 commit c8d94a3

File tree

5 files changed

+360
-404
lines changed

5 files changed

+360
-404
lines changed

src/stdlib_sparse.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
!! public API
22
module stdlib_sparse
33
use stdlib_sparse_kinds
4+
use stdlib_sparse_conversion
5+
use stdlib_sparse_spmv
46
end module stdlib_sparse

src/stdlib_sparse_constants.fypp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#:include "common.fypp"
2+
#:set R_KINDS_TYPES = list(zip(REAL_KINDS, REAL_TYPES, REAL_SUFFIX))
3+
#:set C_KINDS_TYPES = list(zip(CMPLX_KINDS, CMPLX_TYPES, CMPLX_SUFFIX))
4+
module stdlib_sparse_constants
5+
use stdlib_kinds, only: int8, int16, int32, int64, sp, dp, xdp, qp
6+
7+
implicit none
8+
public
9+
10+
enum, bind(C)
11+
enumerator :: sparse_full !! Full Sparse matrix (no symmetry considerations)
12+
enumerator :: sparse_lower !! Symmetric Sparse matrix with triangular inferior storage
13+
enumerator :: sparse_upper !! Symmetric Sparse matrix with triangular supperior storage
14+
end enum
15+
16+
! Integer size support for ILP64 builds should be done here
17+
integer, parameter :: ilp = int32
18+
19+
#:for k1, t1, s1 in (R_KINDS_TYPES)
20+
${t1}$, parameter :: zero_${s1}$ = 0._${k1}$
21+
${t1}$, parameter :: one_${s1}$ = 1._${k1}$
22+
#:endfor
23+
#:for k1, t1, s1 in (C_KINDS_TYPES)
24+
${t1}$, parameter :: zero_${s1}$ = (0._${k1}$,0._${k1}$)
25+
${t1}$, parameter :: one_${s1}$ = (1._${k1}$,1._${k1}$)
26+
#:endfor
27+
28+
end module stdlib_sparse_constants

0 commit comments

Comments
 (0)