Skip to content

Commit e852bb5

Browse files
committed
Fixed docs wording and made pure function
1 parent 6aac9ca commit e852bb5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/specs/stdlib_linalg.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Computes the outer product of two vectors
191191

192192
### Return value
193193

194-
Returns a rank-2 array equal to `u v^T` (assuming `u, v` are column vectors). The shape of the returned array is `[size(u), size(v)]`.
194+
Returns a rank-2 array equal to `u v^T` (where `u, v` are considered column vectors). The shape of the returned array is `[size(u), size(v)]`.
195195

196196
### Example
197197

src/stdlib_linalg.fypp

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module stdlib_linalg
7373
!! Computes the outer product of two vectors, returning a rank-2 array
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)
76+
pure module function outer_product_${t1[0]}$${k1}$(u, v) result(res)
7777
${t1}$, intent(in) :: u(:), v(:)
7878
${t1}$ :: res(size(u),size(v))
7979
end function outer_product_${t1[0]}$${k1}$

src/stdlib_linalg_outer_product.fypp

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ submodule (stdlib_linalg) stdlib_linalg_outer_product
77
contains
88

99
#:for k1, t1 in RCI_KINDS_TYPES
10-
module function outer_product_${t1[0]}$${k1}$(u, v) result(res)
10+
pure module function outer_product_${t1[0]}$${k1}$(u, v) result(res)
1111
${t1}$, intent(in) :: u(:), v(:)
1212
${t1}$ :: res(size(u),size(v))
1313
integer :: col

0 commit comments

Comments
 (0)