Documentation
¶
Overview ¶
Package tensor ... very simplified tensor with interface compatible with gorgonia.org/tensor
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEndReached = errors.New("at end")
ErrEndReached is returned by iterator when at ane
View Source
var ErrIndexOutOfBounds = errors.New("index out of bounds")
ErrIndexOutOfBounds is returned by At when out of bounds
View Source
var Float64 = reflect.Float64
Float64 is element type
Functions ¶
This section is empty.
Types ¶
type Dense ¶
type Dense struct {
// contains filtered or unexported fields
}
Dense is a dense tensor
type DenseIterator ¶
type DenseIterator struct {
// contains filtered or unexported fields
}
DenseIterator is returned by Dense.Iterator
func (*DenseIterator) Next ¶
func (it *DenseIterator) Next() (i int, e error)
Next return current index and advance
type Option ¶
type Option func(t *Dense)
Option can be passed to NewDense ex: WithBacking
func WithBacking ¶
WithBacking binds an existing storage to tensor
Click to show internal directories.
Click to hide internal directories.