(def-unnester-skip-zeros fname src-tag val-array-ctor aset-val zero-lit)Define an unnest fn that skips val==0. Returns {:row_no long[] :col_no short[] :val <primitive[]>} sized to nnz.
src-tag: bytes, shorts, ints, longs, floats, doubles val-array-ctor: e.g. float-array aset-val: e.g. aset-float zero-lit: literal 0 of the right primitive type (0, 0.0, (byte 0), etc).
Define an unnest fn that skips val==0.
Returns {:row_no long[] :col_no short[] :val <primitive[]>} sized to nnz.
src-tag: bytes, shorts, ints, longs, floats, doubles
val-array-ctor: e.g. float-array
aset-val: e.g. aset-float
zero-lit: literal 0 of the right primitive type (0, 0.0, (byte 0), etc).(npy->dataset-unnested-nz path)Same as npy->dataset-unnested, but skips val==0 (2-pass).
Same as npy->dataset-unnested, but skips val==0 (2-pass).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |