cow -> col
This commit is contained in:
parent
a211e88530
commit
cee1a66a50
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ func (m *Matrix) WithEpsilon(epsilon float64) *Matrix {
|
||||||
|
|
||||||
// Each applies the action to each element of the matrix in
|
// Each applies the action to each element of the matrix in
|
||||||
// rows => cols order.
|
// rows => cols order.
|
||||||
func (m *Matrix) Each(action func(row, cow int, value float64)) {
|
func (m *Matrix) Each(action func(row, col int, value float64)) {
|
||||||
rows, cols := m.Size()
|
rows, cols := m.Size()
|
||||||
for row := 0; row < rows; row++ {
|
for row := 0; row < rows; row++ {
|
||||||
for col := 0; col < cols; col++ {
|
for col := 0; col < cols; col++ {
|
||||||
|
|
Loading…
Reference in a new issue