File tree Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ SRCFYPP =\
66 stdlib_io.fypp \
77 stdlib_linalg.fypp \
88 stdlib_linalg_diag.fypp \
9- stdlib_linalg_outer_product.fypp \
9+ stdlib_linalg_outer_product.fypp \
1010 stdlib_optval.fypp \
1111 stdlib_quadrature.fypp \
1212 stdlib_quadrature_trapz.fypp \
@@ -129,3 +129,4 @@ stdlib_stats_distribution_PRNG.o: \
129129stdlib_string_type.o: stdlib_ascii.o stdlib_kinds.o
130130stdlib_strings.o: stdlib_ascii.o stdlib_string_type.o
131131stdlib_math.o: stdlib_kinds.o
132+ stdlib_linalg_outer_product.o: stdlib_linalg.o
Original file line number Diff line number Diff line change @@ -73,11 +73,10 @@ module stdlib_linalg
7373 !! Computes outer product of two vectors, returning a matrix
7474 !! ([Specification](../page/specs/stdlib_linalg.html#description_3))
7575 #:for k1, t1 in RCI_KINDS_TYPES
76- module function outer_product_${t1[0]}$${k1}$(u,v) result(res)
77- ${t1}$, intent(in) :: u(:), v(:)
78- ${t1}$ :: res(size(u),size(v))
79- integer :: col
80- end function outer_product_${t1[0]}$${k1}$
76+ module function outer_product_${t1[0]}$${k1}$(u, v) result(res)
77+ ${t1}$, intent(in) :: u(:), v(:)
78+ ${t1}$ :: res(size(u),size(v))
79+ end function outer_product_${t1[0]}$${k1}$
8180 #:endfor
8281 end interface outer_product
8382
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ submodule (stdlib_linalg) stdlib_linalg_outer_product
66
77contains
88
9- #:for k1, t1 in RCI_KINDS_TYPES
10- module function outer_product_${t1[0]}$${k1}$(u,v) result(res)
11- ${t1}$, intent(in) :: u(:), v(:)
12- ${t1}$ :: res(size(u),size(v))
13- integer :: col
14- do col=1, size(v)
15- res(:,col) = v(col) * u
16- end do
17- end function outer_product_${t1[0]}$${k1}$
18- #:endfor
9+ #:for k1, t1 in RCI_KINDS_TYPES
10+ module function outer_product_${t1[0]}$${k1}$(u, v) result(res)
11+ ${t1}$, intent(in) :: u(:), v(:)
12+ ${t1}$ :: res(size(u),size(v))
13+ integer :: col
14+ do col = 1, size(v)
15+ res(:,col) = v(col) * u
16+ end do
17+ end function outer_product_${t1[0]}$${k1}$
18+ #:endfor
1919
2020end submodule
You can’t perform that action at this time.
0 commit comments