Skip to content

Commit

Permalink
added private at method
Browse files Browse the repository at this point in the history
  • Loading branch information
btracey committed Mar 18, 2014
1 parent d46424e commit c8f51ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mat64/dense.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ func (m *Dense) At(r, c int) float64 {
if c >= m.mat.Cols || c < 0 {
panic("index error: column access out of bounds")
}
return m.at(r, c)
}

func (m *Dense) at(r, c int) float64 {
return m.mat.Data[r*m.mat.Stride+c]
}

Expand Down

0 comments on commit c8f51ef

Please sign in to comment.