SetZeros is simple convenience function initialize all values to 0
()
| 245 | |
| 246 | // SetZeros is simple convenience function initialize all values to 0 |
| 247 | func (tsr *Bits) SetZeros() { |
| 248 | ln := tsr.Len() |
| 249 | for j := 0; j < ln; j++ { |
| 250 | tsr.Values.Set(j, false) |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | // Clone clones this tensor, creating a duplicate copy of itself with its |
| 255 | // own separate memory representation of all the values, and returns |