ones_like#

rbc.stdlib.creation_functions.ones_like(a, dtype=None)#

Return an array of ones with the same shape and type as a given array.

Array-API ‘ones_like’ doc