class Tensor implements Sliceable, TensorLike<DT, O>import { Tensor } from "https://deno.land/x/vectorizer@v0.7.5/src/utils/misc/tensor.ts"; A Tensor of order O. ConstructorsnewTensor(tensor: TensorLike<DT, O>)newTensor(array: NDArray<DT>[O], dType: DT)newTensor(data: DType<DT>, shape: Shape<O>)newTensor(dType: DT, shape: Shape<O>)newTensor(data: | NDArray<DT>[O] | DType<DT> | DT | TensorLike<DT, O>, shape?: Shape<O> | DType<DT>)Type ParametersDT extends DataTypeO extends OrderPropertiesdata: DType<DT>dType: DTreadonlylength: numberFor compat with useSplit() order: Oshape: Shape<O>strides: Shape<O>Methodsfilter(fn: (value: DType<DT>,row: number,_: DType<DT>[],) => boolean): Tensor<DT, O>Filter the tensor by 0th axis item(...indices: number[]): DTypeValue<DT>Get an item using indices slice(start?,end?: number,axis?,): Tensor<DT, O>Slice matrix by axis toJSON(): { data: DTypeValue<DT>[]; shape: Shape<O>; }Static MethodsgetStrides<O extends Order>(shape: Shape<O>): Shape<O>