p3(lrls/helper.go): fix 0 slice size

This commit is contained in:
leo 2023-03-08 23:26:46 +01:00
parent ea406f5b56
commit e49dbbfc39
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -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)