warp.identity#

warp.identity(
n: int32,
dtype: Scalar,
) Matrix[Any, Any, Scalar]#
  • Kernel

Create an identity matrix with shape=(n,n) with the type given by dtype.