(data []T)
| 32 | } |
| 33 | |
| 34 | func WithBacking[T float.DType](data []T) OptionsFunc { |
| 35 | return func(opts *Options) { |
| 36 | opts.Slice = float.Make[T](data...) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func NewDense[T float.DType](opts ...OptionsFunc) *Dense[T] { |
| 41 | r, err := newDense[T](opts...) |
no outgoing calls