identity#
- class brainpy.math.identity(n, dtype=None)#
Similar to
jax.numpy.identityfunction, while it is compatible with brainpy Array/Variable.Note that this function is also compatible with:
NumPy or PyTorch syntax when receiving
outargument.PyTorch syntax when receiving
keepdimordimargument.TensorFlow syntax when receiving
keep_dimsargument.
- Return type:
Array