Skip to content

Commit

Permalink
Update matrix.go
Browse files Browse the repository at this point in the history
  • Loading branch information
itsubaki authored Jun 2, 2023
1 parent bd6f94c commit ff07b5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions math/matrix/matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func New(v ...[]complex128) Matrix {
return out
}

// Zero returns a zero matrix of nxn.
// Zero returns a zero matrix.
func Zero(n int) Matrix {
out := make(Matrix, n)
for i := 0; i < n; i++ {
Expand All @@ -26,7 +26,7 @@ func Zero(n int) Matrix {
return out
}

// Identity returns a identity matrix of nxn.
// Identity returns a identity matrix.
func Identity(n int) Matrix {
out := Zero(n)
for i := 0; i < n; i++ {
Expand Down

0 comments on commit ff07b5e

Please sign in to comment.