(i []int, val bool)
| 94 | func (tsr *Bits) Value1D(i int) bool { return tsr.Values.Index(i) } |
| 95 | |
| 96 | func (tsr *Bits) Set(i []int, val bool) { j := int(tsr.Shp.Offset(i)); tsr.Values.Set(j, val) } |
| 97 | func (tsr *Bits) Set1D(i int, val bool) { tsr.Values.Set(i, val) } |
| 98 | |
| 99 | // SetShape sets the shape params, resizing backing storage appropriately |