sf.math.ones_like¶
- math.ones_like()¶
Returns an array of ones with the same shape and
dtypeasarray.- Parameters:
array (
ndarray[Tuple[int,...],Union[TypeVar(R,float16,float32,float64),TypeVar(C,complex64,complex128),TypeVar(Z,int16,int32,int64),TypeVar(N,uint16,uint32,uint64)]]) – The array to take the shape and dtype of- Return type:
ndarray[Tuple[int,...],Union[TypeVar(R,float16,float32,float64),TypeVar(C,complex64,complex128),TypeVar(Z,int16,int32,int64),TypeVar(N,uint16,uint32,uint64)]]- Returns:
The array of ones
code/api/mrmustard.math.ones_like
Download Python script
Download Notebook
View on GitHub