Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
Fix fast path Pow for NaN-filled matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Jan 1, 2015
1 parent 335a841 commit 35f9fa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mat64/dense_arithmetic.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@ func (m *Dense) Pow(a Matrix, n int) {
m.Copy(a)
return
case 2:
for i := 0; i < r; i++ {
zero(m.mat.Data[i*m.mat.Stride : i*m.mat.Stride+c])
}
m.Mul(a, a)
return
}
Expand Down

0 comments on commit 35f9fa1

Please sign in to comment.