ones_like

odl.ones_like(x, dtype=None, device=None)

Returns a new array filled with ones and having the same shape as an input array x.