@@ -11,16 +11,15 @@ module stdlib_experimental_linalg
11
11
public :: trace
12
12
13
13
interface diag
14
- !
15
- ! Vector to matrix
16
- !
14
+ !
15
+ ! Vector to matrix
16
+ !
17
17
#:for k1, t1 in RCI_KINDS_TYPES
18
18
module function diag_${t1[0]}$${k1}$(v) result(res)
19
19
${t1}$, intent(in) :: v(:)
20
20
${t1}$ :: res(size(v),size(v))
21
21
end function diag_${t1[0]}$${k1}$
22
22
#:endfor
23
-
24
23
#:for k1, t1 in RCI_KINDS_TYPES
25
24
module function diag_${t1[0]}$${k1}$_k(v,k) result(res)
26
25
${t1}$, intent(in) :: v(:)
@@ -29,16 +28,15 @@ module stdlib_experimental_linalg
29
28
end function diag_${t1[0]}$${k1}$_k
30
29
#:endfor
31
30
32
- !
33
- ! Matrix to vector
34
- !
31
+ !
32
+ ! Matrix to vector
33
+ !
35
34
#:for k1, t1 in RCI_KINDS_TYPES
36
35
module function diag_${t1[0]}$${k1}$_mat(A) result(res)
37
36
${t1}$, intent(in) :: A(:,:)
38
37
${t1}$ :: res(minval(shape(A)))
39
38
end function diag_${t1[0]}$${k1}$_mat
40
39
#:endfor
41
-
42
40
#:for k1, t1 in RCI_KINDS_TYPES
43
41
module function diag_${t1[0]}$${k1}$_mat_k(A,k) result(res)
44
42
${t1}$, intent(in) :: A(:,:)
@@ -58,7 +56,6 @@ module stdlib_experimental_linalg
58
56
contains
59
57
60
58
function eye(n) result(res)
61
- ! Returns the identity matrix of size n x n and type real.
62
59
integer, intent(in) :: n
63
60
integer(int8) :: res(n, n)
64
61
integer :: i
0 commit comments