Is there a math operator to see if all vector element values are positive?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
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$
operator-theory
add a comment |Â
up vote
0
down vote
favorite
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$
operator-theory
Please give an example of when a "vector value is positive".
â coffeemath
Aug 13 at 3:20
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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$
operator-theory
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$
operator-theory
edited Aug 13 at 3:22
asked Aug 13 at 3:18
DuckQueen
1377
1377
Please give an example of when a "vector value is positive".
â coffeemath
Aug 13 at 3:20
add a comment |Â
Please give an example of when a "vector value is positive".
â coffeemath
Aug 13 at 3:20
Please give an example of when a "vector value is positive".
â coffeemath
Aug 13 at 3:20
Please give an example of when a "vector value is positive".
â coffeemath
Aug 13 at 3:20
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
To test whether each component is positive is equivalent to testing if the minimum is positive.:$$Px = mathbb1_min_i x_i >0$$
add a comment |Â
up vote
0
down vote
If the vector $vec P$ has $N$ components then
$$ T equiv sum_k=1^N big ( |P_k|-P_k big) =0 $$
if and only if all components are non-negative.
a function that gives the values you want can be expressed as $(T = 0)$ understood as a boolean function returning 1 for true and 0 for false
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
To test whether each component is positive is equivalent to testing if the minimum is positive.:$$Px = mathbb1_min_i x_i >0$$
add a comment |Â
up vote
1
down vote
To test whether each component is positive is equivalent to testing if the minimum is positive.:$$Px = mathbb1_min_i x_i >0$$
add a comment |Â
up vote
1
down vote
up vote
1
down vote
To test whether each component is positive is equivalent to testing if the minimum is positive.:$$Px = mathbb1_min_i x_i >0$$
To test whether each component is positive is equivalent to testing if the minimum is positive.:$$Px = mathbb1_min_i x_i >0$$
answered Aug 13 at 3:28
Siong Thye Goh
78.8k134997
78.8k134997
add a comment |Â
add a comment |Â
up vote
0
down vote
If the vector $vec P$ has $N$ components then
$$ T equiv sum_k=1^N big ( |P_k|-P_k big) =0 $$
if and only if all components are non-negative.
a function that gives the values you want can be expressed as $(T = 0)$ understood as a boolean function returning 1 for true and 0 for false
add a comment |Â
up vote
0
down vote
If the vector $vec P$ has $N$ components then
$$ T equiv sum_k=1^N big ( |P_k|-P_k big) =0 $$
if and only if all components are non-negative.
a function that gives the values you want can be expressed as $(T = 0)$ understood as a boolean function returning 1 for true and 0 for false
add a comment |Â
up vote
0
down vote
up vote
0
down vote
If the vector $vec P$ has $N$ components then
$$ T equiv sum_k=1^N big ( |P_k|-P_k big) =0 $$
if and only if all components are non-negative.
a function that gives the values you want can be expressed as $(T = 0)$ understood as a boolean function returning 1 for true and 0 for false
If the vector $vec P$ has $N$ components then
$$ T equiv sum_k=1^N big ( |P_k|-P_k big) =0 $$
if and only if all components are non-negative.
a function that gives the values you want can be expressed as $(T = 0)$ understood as a boolean function returning 1 for true and 0 for false
answered Aug 13 at 3:46
WW1
6,4821712
6,4821712
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2880963%2fis-there-a-math-operator-to-see-if-all-vector-element-values-are-positive%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Please give an example of when a "vector value is positive".
â coffeemath
Aug 13 at 3:20