(flt *[]float64)
| 156 | } |
| 157 | |
| 158 | func (tsr *Bits) Floats(flt *[]float64) { |
| 159 | sz := tsr.Len() |
| 160 | *flt = slicesx.SetLength(*flt, sz) |
| 161 | for j := 0; j < sz; j++ { |
| 162 | (*flt)[j] = BoolToFloat64(tsr.Values.Index(j)) |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | // SetFloats sets tensor values from a []float64 slice (copies values). |
| 167 | func (tsr *Bits) SetFloats(vals []float64) { |
nothing calls this directly
no test coverage detected