AddShapes returns a new shape by adding two shapes one after the other.
No description provided by the author
ColMajorStrides returns strides for shape where the first dimension is inner-most and subsequent dimensions are progressively outer.
CopyDense copies a gonum mat.Dense matrix into given Tensor using standard Float64 interface.
CopyInts makes a copy of an int slice.
CopyInts64 makes a copy of an int64 slice to an int slice.
CopyStrings makes a copy of a string slice.
EqualInts compares two int slices and returns true if they are equal.
No description provided by the author
No description provided by the author
IntTo64 converts an []int slice to an []int64 slice.
New returns a new Tensor of given type, using our Type specifier which is isomorphic with arrow.Type.
NewBits returns a new n-dimensional array of bits If strides is nil, row-major strides will be inferred.
NewBitsShape returns a new n-dimensional array of bits If strides is nil, row-major strides will be inferred.
NewFloat32 returns a new n-dimensional array of float32s.
NewFloat32Shape returns a new n-dimensional array of float32s.
NewFloat64 returns a new n-dimensional array of float64s.
NewFloat64Shape returns a new n-dimensional array of float64s.
NewInt returns a new n-dimensional array of ints.
NewInt16 returns a new n-dimensional array of int16s.
NewInt16Shape returns a new n-dimensional array of int16s.
NewInt32 returns a new n-dimensional array of int32s.
NewInt32Shape returns a new n-dimensional array of int32s.
NewInt64 returns a new n-dimensional array of int64s.
NewInt64Shape returns a new n-dimensional array of int64s.
NewInt8 returns a new n-dimensional array of int8s.
NewInt8Shape returns a new n-dimensional array of int8s.
NewIntShape returns a new n-dimensional array of ints.
NewShape returns a new shape object initialized with params.
NewString returns a new n-dimensional array of strings If strides is nil, row-major strides will be inferred.
NewStringShape returns a new n-dimensional array of strings from given shape.
NewUint16 returns a new n-dimensional array of uint16s.
NewUint16Shape returns a new n-dimensional array of uint16s.
NewUint32 returns a new n-dimensional array of uint32s.
NewUint32Shape returns a new n-dimensional array of uint32s.
NewUint64 returns a new n-dimensional array of uint64s.
NewUint64Shape returns a new n-dimensional array of uint64s.
NewUint8 returns a new n-dimensional array of uint8s.
NewUint8Shape returns a new n-dimensional array of uint8s.
OpenCSV reads a tensor from a comma-separated-values (CSV) file (where comma = any delimiter, specified in the delim arg), using the Go standard encoding/csv reader conforming to the official CSV standard.
Prjn2DCoords returns the corresponding full-dimensional coordinates that go into the given row, col coords for a 2D projection of the given tensor, collapsing higher dimensions down to 2D (and 1D up to 2D).
Prjn2DIdx returns the flat 1D index for given row, col coords for a 2D projection of the given tensor shape, collapsing higher dimensions down to 2D (and 1D up to 2D).
Prjn2DSet sets a float64 value at given row, col coords for a 2D projection of the given tensor, collapsing higher dimensions down to 2D (and 1D up to 2D).
Prjn2DShape returns the size of a 2D projection of the given tensor Shape, collapsing higher dimensions down to 2D (and 1D up to 2D).
Prjn2DVal returns the float64 value at given row, col coords for a 2D projection of the given tensor, collapsing higher dimensions down to 2D (and 1D up to 2D).
ReadCSV reads a tensor from a comma-separated-values (CSV) file (where comma = any delimiter, specified in the delim arg), using the Go standard encoding/csv reader conforming to the official CSV standard.
RowMajorStrides returns strides for shape where the first dimension is outer-most and subsequent dimensions are progressively inner.
SaveCSV writes a tensor to a comma-separated-values (CSV) file (where comma = any delimiter, specified in the delim arg).
SetFloat64SliceLen is a utility function to set given slice of float64 values to given length, reusing existing where possible and making a new one as needed.
No description provided by the author
WriteCSV writes a tensor to a comma-separated-values (CSV) file (where comma = any delimiter, specified in the delim arg).