testlapack: update nanGeneral

This commit is contained in:
Vladimir Chalupecky
2016-06-15 17:06:15 +09:00
parent 68f437d807
commit e35b96787f

View File

@@ -53,7 +53,10 @@ func nanGeneral(r, c, stride int) blas64.General {
panic("bad matrix size") panic("bad matrix size")
} }
if r == 0 || c == 0 { if r == 0 || c == 0 {
return blas64.General{Stride: max(1, c)} return blas64.General{Stride: max(1, stride)}
}
if stride < c {
panic("bad stride")
} }
return blas64.General{ return blas64.General{
Rows: r, Rows: r,