Skip to content

Commit 25b219d

Browse files
adenchfijvdp1
andauthored
Apply suggestions from code review
Adding spaces and capitalization. Co-authored-by: Jeremie Vandenplas <[email protected]>
1 parent b3755cc commit 25b219d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

doc/specs/stdlib_linalg.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Returns a rank-2 array equal to `u v^T` (where `u, v` are considered column vect
160160
{!example/linalg/example_outer_product.f90!}
161161
```
162162

163-
## `kronecker_product` - Computes the kronecker product of two rank-2 arrays
163+
## `kronecker_product` - Computes the Kronecker product of two rank-2 arrays
164164

165165
### Status
166166

example/linalg/example_kronecker_product.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
program example_kronecker_product
22
use stdlib_linalg, only: kronecker_product
33
implicit none
4-
integer, parameter :: m1=1, n1=2, m2=2, n2=3
4+
integer, parameter :: m1 = 1, n1 = 2, m2 = 2, n2 = 3
55
real :: A(m1, n1), B(m2,n2)
66
real, allocatable :: C(:,:)
77

8-
do j=1, n1
9-
do i=1, m1
8+
do j = 1, n1
9+
do i = 1, m1
1010
A(i,j) = i*j ! A = [1, 2]
1111
end do
1212
end do
1313

14-
do j=1, n2
15-
do i=1, m2 ! B = [ 1, 2, 3 ]
14+
do j = 1, n2
15+
do i = 1, m2 ! B = [ 1, 2, 3 ]
1616
B(i,j) = i*j ! [ 2, 4, 6 ]
1717
end do
1818
end do

src/stdlib_linalg.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module stdlib_linalg
9797
interface kronecker_product
9898
!! version: experimental
9999
!!
100-
!! Computes the Kronecker product of two arrays size M1xN1, M2xN2, returning an (M1*M2)x(N1*N2) array
100+
!! Computes the Kronecker product of two arrays of size M1xN1, and of M2xN2, returning an (M1*M2)x(N1*N2) array
101101
!! ([Specification](../page/specs/stdlib_linalg.html#
102102
!! kronecker_product-computes-the-kronecker-product-of-two-matrices))
103103
#:for k1, t1 in RCI_KINDS_TYPES

0 commit comments

Comments
 (0)