Versions in this module Expand all Collapse all v0 v0.2.0 Apr 25, 2023 v0.1.0 Mar 29, 2023 Changes in this version + func AssertTensorFormat(t Tensor) error + func BuildTensor(dimension int, numAxes int) interface + func Convert(val interface{}, typ reflect.Type) (interface{}, error) + func VerticalVector(a Tensor, pos int) []float64 + type Tensor struct + Cols int + Data [][]float64 + RequiresGrad bool + Rows int + func AddScalar(a Tensor, scalar float64) Tensor + func Dot(a, b Tensor) Tensor + func DotScalar(a Tensor, scalar float64) Tensor + func NewTensor(data [][]float64) Tensor + func Pow(a Tensor, pow float64) Tensor + func Rand(rows, cols int) Tensor + func ReLU(a Tensor) Tensor + func ScalarMinusTensor(a Tensor, scalar float64) Tensor + func Softmax(tensor Tensor) Tensor + func Sub(a, b Tensor) Tensor + func Sum(params ...Tensor) Tensor + func Tanh(a Tensor) Tensor + func TensorOpsScalar(a Tensor, b float64, ops string) Tensor + func TensorOpsTensor(a Tensor, b Tensor, ops string) Tensor + func TensorOpsTensorWithBroadcasting(a Tensor, b Tensor, ops string) Tensor + func Zeros(rows, cols int) Tensor + func (t *Tensor) Reshape(shape []int) Tensor + func (t Tensor) IsEqualTo(tb Tensor) bool + func (t Tensor) SameTensorRowColShape(tb Tensor) error + func (t Tensor) SameTensorShape(tb Tensor) error + func (t Tensor) Shape() []int + func (t Tensor) Transpose() Tensor