dq.isop
isop(x: ArrayLike) -> bool
Returns True if the array is in the format of an operator.
Parameters
-
x
(array_like of shape (...))
–
Array.
Returns
True if the last two dimensions of x
are equal, False otherwise.
Examples
>>> dq.isop(jnp.ones((3, 3)))
True
>>> dq.isop(jnp.ones((5, 3, 3)))
True
>>> dq.isop(jnp.ones((3, 1)))
False