Documentation ¶
Index ¶
- func AsDim(o any) (bt.Optional[Dim], bool)
- func IsSqueezedRange(o any) bool
- type Dim
- type Dims
- func (ds Dims) CheckEqualLen(o Dims)
- func (ds Dims) Contains(d Dim) bool
- func (ds Dims) Equals(o Dims) bool
- func (ds Dims) Find(d Dim) (int, bool)
- func (ds Dims) Get(i int) Dim
- func (ds Dims) Len() int
- func (ds Dims) Mutate() MutDims
- func (ds Dims) Prod() Dim
- func (ds Dims) Slice() []Dim
- func (ds Dims) String() string
- func (ds Dims) Sum() Dim
- type Maker
- type MutDims
- type NdArray
- func (a NdArray[T]) Assign(src NdArray[T])
- func (a NdArray[T]) At(idxs Dims) *T
- func (a NdArray[T]) Data() []T
- func (a NdArray[T]) Flat() []T
- func (a NdArray[T]) Get(idxs Dims) T
- func (a NdArray[T]) MoveAxis(src, dst int) NdArray[T]
- func (a NdArray[T]) NestArray() any
- func (a NdArray[T]) NestSlice() any
- func (a NdArray[T]) Render(w io.Writer, fn func(io.Writer, T))
- func (a NdArray[T]) Reshape(nsh Shape) NdArray[T]
- func (a NdArray[T]) Slice(bs ...any) NdArray[T]
- func (a NdArray[T]) Squeeze() NdArray[T]
- func (a NdArray[T]) String() string
- func (a NdArray[T]) SwapAxes(x, y Dim) NdArray[T]
- func (a NdArray[T]) Transpose(axes Dims) NdArray[T]
- func (a NdArray[T]) View() View
- type Range
- type Shape
- type Strides
- type View
- func (v View) DataSize() Dim
- func (v View) Equals(o View) bool
- func (v View) Index(idxs Dims) Dim
- func (v View) Linear() bool
- func (v View) Offset() Dim
- func (v View) Shape() Shape
- func (v View) Slice(bs ...any) View
- func (v View) Squeeze() View
- func (v View) Strides() Strides
- func (v View) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSqueezedRange ¶
Types ¶
type Dims ¶
type Dims struct {
// contains filtered or unexported fields
}
func (Dims) CheckEqualLen ¶
Click to show internal directories.
Click to hide internal directories.