p3(lrls/helper.go): fix 0 slice size
This commit is contained in:
parent
ea406f5b56
commit
e49dbbfc39
@ -41,7 +41,7 @@ func covMatrices(size, params int) ([]*mat.Dense, error) {
|
||||
}
|
||||
|
||||
// slice of covariance matrices.
|
||||
cms := make([]*mat.Dense, 0, size)
|
||||
cms := make([]*mat.Dense, size)
|
||||
|
||||
for i := range cms {
|
||||
cms[i] = mat.NewDense(params, params, nil)
|
||||
|
Loading…
Reference in New Issue
Block a user