brainpy.math.triu_indices_from#
- brainpy.math.triu_indices_from(arr, k=0)#
Similar to
jax.numpy.triu_indices_from
function, while it is compatible with brainpy Array/Variable.Note that this function is also compatible with:
NumPy or PyTorch syntax when receiving
out
argument.PyTorch syntax when receiving
keepdim
ordim
argument.TensorFlow syntax when receiving
keep_dims
argument.