Documentation
¶
Index ¶
- type Tensor
- func (t *Tensor) At(i, j int) float64
- func (t *Tensor) Copy() *Tensor
- func (t *Tensor) Data() *mat.Dense
- func (t *Tensor) Dims() (int, int)
- func (t *Tensor) RawData() []float64
- func (t *Tensor) Reshape(shape ...int) error
- func (t *Tensor) Set(i, j int, v float64)
- func (t *Tensor) Shape() []int
- func (t *Tensor) Slice(rowStart, rowEnd, colStart, colEnd int) (*Tensor, error)
- func (t *Tensor) T() *Tensor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tensor ¶
type Tensor struct {
// contains filtered or unexported fields
}
Tensor is a multidimensional array structure wrapping gonum/mat.Dense
func NewTensorFromDense ¶
NewTensorFromDense creates a new tensor from mat.Dense
Click to show internal directories.
Click to hide internal directories.