mirror of
https://github.com/gonum/gonum.git
synced 2025-10-24 07:34:11 +08:00
testlapack: update nanGeneral
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user