@thi.ng/tensors
Version:
0D/1D/2D/3D/4D tensors with extensible polymorphic operations and customizable storage
11 lines • 401 B
TypeScript
import type { TensorOpts, Type } from "./api.js";
import { Tensor2 } from "./tensor.js";
/**
* Creates a square identity matrix of given `size` and options.
*
* @param type
* @param size
* @param opts
*/
export declare const identity: <T extends Exclude<Type, "str">>(type: T, size: number, opts?: Pick<TensorOpts<any, any>, "storage">) => Tensor2<number>;
//# sourceMappingURL=identity.d.ts.map