@thi.ng/tensors
Version:
0D/1D/2D/3D/4D tensors with extensible polymorphic operations and customizable storage
10 lines • 365 B
TypeScript
import type { ITensor2, TensorOpts, Type } from "./api.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">) => ITensor2;
//# sourceMappingURL=identity.d.ts.map