So I want to check if all vector values are positive and if they are get 1 else a 0. Is there an operator for that or one must use a picewize function?
So $P[1,2,0]^t = 1$
while
$P[-1,0,0]^t = 0$
So I want to check if all vector values are positive and if they are get 1 else a 0. Is there an operator for that or one must use a picewize function?
So $P[1,2,0]^t = 1$
while
$P[-1,0,0]^t = 0$
To test whether each component is positive is equivalent to testing if the minimum is positive.:$$Px = \mathbb{1}_{\min_i x_i >0}$$