Skip to content

Commit

Permalink
Populated slice of errays with errays
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamingRaven committed Jul 17, 2022
1 parent 1aee405 commit bd593bd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dataset/dataset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ func TestSliceOfSlices(t *testing.T) {

func sliceOfErrays[T LattigoCompat](sos *[][]T) *[]erray.Erray[T] {
soe := make([]erray.Erray[T], len(*sos))
o := erray.NewCKKSErray[float64]()
e := erray.NewCKKSErray[T]()
parms, _ := ckks.NewParametersFromLiteral(ckks.PN12QP109)
o.SetParams(&parms)
e.SetParams(&parms)
for i := 0; i < len(*sos); i++ {
// soe[i] =
fmt.Println((*sos)[i])
bud := e.Bud()
bud.SetData(&(*sos)[i])
soe[i] = bud
}
return &soe
}
Expand Down

0 comments on commit bd593bd

Please sign in to comment.