Debian Codegraph @

native/doc.go

raw
1 // package native is a utility package for gorgonia.org/tensor.
2 //
3 // Amongst other things, it provides iterators that use Go slice semantics, while keeping a reference to the underlying memory.
4 // This means you can update the slices and the changes will be reflected back into the original tensor.
5 //
6 // There is of course a cost of using the native iterators and selectors - allocation costs.
7 // For best performance, don't use these in a tight loop.
8 package native