emer / etable

Data table structure in Go, now developed at https://github.com/cogentcore/core/tree/main/tensor
BSD 3-Clause "New" or "Revised" License
115 stars 7 forks source link

etensor SubSpace does not copy nulls #26

Closed rcoreilly closed 4 years ago

rcoreilly commented 4 years ago

The new subspace tensor uses a slice that points into original tensor, but the nulls, being a bitslice, cannot share the original nulls bits unless they happen to be mod 8 aligned on the byte boundaries.

fixed by adding bitslice.SubSlice (and rest of todo: methods there: Insert, Delete), and calling in subspace.