Documentation ¶
Index ¶
- func DimsToVector(dims []domain.Tuple) []int
- func GetAxis(axis []int) int
- func GetIVector(newIndex int, newStrides, newShape []int) (*domain.IVector, error)
- func GetIndex(vector, newStrides, size []int) (int, error)
- func GetIndexFromVector(vector *domain.IVector, newStrides, shape *domain.IVector, ...) (int, error)
- func GetIndexes(vectors [][]int, newStrides, newShape []int) ([]int, error)
- func GetShapeFromDims(dims []domain.Tuple) []int
- func GetStrides(totalSize, totalDimensions int, shape *domain.IVector) domain.IVector
- func GetVector(newIndex int, newStrides, newShape []int) ([]int, error)
- func GetVectors(indexes []int, newStrides, newShape []int) ([][]int, error)
- func RemoveItemInSlice(a []int, index int) []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DimsToVector ¶
Converts dimension tuples to single vector
func GetIVector ¶
func GetIndexFromVector ¶
func GetShapeFromDims ¶
func GetStrides ¶
func RemoveItemInSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.