MyraMath
|
Comparison operators (<,>) and logical operators (&&,||,!) for Expression's. More...
Go to the source code of this file.
Classes | |
class | myra::Expression< Arity, Number > |
Given an index (i,j,etc), returns a value. More... | |
Functions | |
Expression< 1, bool > | myra::operator< (const Expression< 1, NumberS > &A, const Expression< 1, NumberS > &B) |
Compares two real Expression's entrywise, returns true iff A(i) < B(i) | |
Expression< 1, bool > | myra::operator< (const Expression< 1, NumberD > &A, const Expression< 1, NumberD > &B) |
Compares two real Expression's entrywise, returns true iff A(i) < B(i) | |
Expression< 2, bool > | myra::operator< (const Expression< 2, NumberS > &A, const Expression< 2, NumberS > &B) |
Compares two real Expression's entrywise, returns true iff A(i) < B(i) | |
Expression< 2, bool > | myra::operator< (const Expression< 2, NumberD > &A, const Expression< 2, NumberD > &B) |
Compares two real Expression's entrywise, returns true iff A(i) < B(i) | |
Expression< 1, bool > | myra::operator< (const Expression< 1, NumberS > &A, NumberS b) |
Compares a real Expression to a constant, returns true iff A(i) < b. | |
Expression< 1, bool > | myra::operator< (const Expression< 1, NumberD > &A, NumberD b) |
Compares a real Expression to a constant, returns true iff A(i) < b. | |
Expression< 2, bool > | myra::operator< (const Expression< 2, NumberS > &A, NumberS b) |
Compares a real Expression to a constant, returns true iff A(i) < b. | |
Expression< 2, bool > | myra::operator< (const Expression< 2, NumberD > &A, NumberD b) |
Compares a real Expression to a constant, returns true iff A(i) < b. | |
Expression< 1, bool > | myra::operator< (NumberS a, const Expression< 1, NumberS > &B) |
Compares a real Expression to a constant, returns true iff a < B(i) | |
Expression< 1, bool > | myra::operator< (NumberD a, const Expression< 1, NumberD > &B) |
Compares a real Expression to a constant, returns true iff a < B(i) | |
Expression< 2, bool > | myra::operator< (NumberS a, const Expression< 2, NumberS > &B) |
Compares a real Expression to a constant, returns true iff a < B(i) | |
Expression< 2, bool > | myra::operator< (NumberD a, const Expression< 2, NumberD > &B) |
Compares a real Expression to a constant, returns true iff a < B(i) | |
Expression< 1, bool > | myra::operator> (const Expression< 1, NumberS > &A, const Expression< 1, NumberS > &B) |
Compares two real Expression's entrywise, returns true iff A(i) > B(i) | |
Expression< 1, bool > | myra::operator> (const Expression< 1, NumberD > &A, const Expression< 1, NumberD > &B) |
Compares two real Expression's entrywise, returns true iff A(i) > B(i) | |
Expression< 2, bool > | myra::operator> (const Expression< 2, NumberS > &A, const Expression< 2, NumberS > &B) |
Compares two real Expression's entrywise, returns true iff A(i) > B(i) | |
Expression< 2, bool > | myra::operator> (const Expression< 2, NumberD > &A, const Expression< 2, NumberD > &B) |
Compares two real Expression's entrywise, returns true iff A(i) > B(i) | |
Expression< 1, bool > | myra::operator> (const Expression< 1, NumberS > &A, NumberS b) |
Compares a real Expression to a constant, returns true iff A(i) > b. | |
Expression< 1, bool > | myra::operator> (const Expression< 1, NumberD > &A, NumberD b) |
Compares a real Expression to a constant, returns true iff A(i) > b. | |
Expression< 2, bool > | myra::operator> (const Expression< 2, NumberS > &A, NumberS b) |
Compares a real Expression to a constant, returns true iff A(i) > b. | |
Expression< 2, bool > | myra::operator> (const Expression< 2, NumberD > &A, NumberD b) |
Compares a real Expression to a constant, returns true iff A(i) > b. | |
Expression< 1, bool > | myra::operator> (NumberS a, const Expression< 1, NumberS > &B) |
Compares a real Expression to a constant, returns true iff a > B(i) | |
Expression< 1, bool > | myra::operator> (NumberD a, const Expression< 1, NumberD > &B) |
Compares a real Expression to a constant, returns true iff a > B(i) | |
Expression< 2, bool > | myra::operator> (NumberS a, const Expression< 2, NumberS > &B) |
Compares a real Expression to a constant, returns true iff a > B(i) | |
Expression< 2, bool > | myra::operator> (NumberD a, const Expression< 2, NumberD > &B) |
Compares a real Expression to a constant, returns true iff a > B(i) | |
Expression< 1, bool > | myra::operator && (const Expression< 1, bool > &A, const Expression< 1, bool > &B) |
Entrywise logical "and" for boolean-valued Expression's. | |
Expression< 2, bool > | myra::operator && (const Expression< 2, bool > &A, const Expression< 2, bool > &B) |
Entrywise logical "and" for boolean-valued Expression's. | |
Expression< 1, bool > | myra::operator|| (const Expression< 1, bool > &A, const Expression< 1, bool > &B) |
Entrywise logical "or" for boolean-valued Expression's. | |
Expression< 2, bool > | myra::operator|| (const Expression< 2, bool > &A, const Expression< 2, bool > &B) |
Entrywise logical "or" for boolean-valued Expression's. | |
Expression< 1, bool > | myra::operator! (const Expression< 1, bool > &A) |
Entrywise logical "not" for boolean-valued Expression's. | |
Expression< 2, bool > | myra::operator! (const Expression< 2, bool > &A) |
Entrywise logical "not" for boolean-valued Expression's. | |
Expression< 1, NumberS > | myra::ternary (const Expression< 1, bool > &A, const Expression< 1, NumberS > &B, const Expression< 1, NumberS > &C) |
Emulates the ternary operator, returns an Expression that evaluates to A?B:C. | |
Expression< 1, NumberD > | myra::ternary (const Expression< 1, bool > &A, const Expression< 1, NumberD > &B, const Expression< 1, NumberD > &C) |
Emulates the ternary operator, returns an Expression that evaluates to A?B:C. | |
Expression< 1, NumberC > | myra::ternary (const Expression< 1, bool > &A, const Expression< 1, NumberC > &B, const Expression< 1, NumberC > &C) |
Emulates the ternary operator, returns an Expression that evaluates to A?B:C. | |
Expression< 1, NumberZ > | myra::ternary (const Expression< 1, bool > &A, const Expression< 1, NumberZ > &B, const Expression< 1, NumberZ > &C) |
Emulates the ternary operator, returns an Expression that evaluates to A?B:C. | |
Expression< 2, NumberS > | myra::ternary (const Expression< 2, bool > &A, const Expression< 2, NumberS > &B, const Expression< 2, NumberS > &C) |
Emulates the ternary operator, returns an Expression that evaluates to A?B:C. | |
Expression< 2, NumberD > | myra::ternary (const Expression< 2, bool > &A, const Expression< 2, NumberD > &B, const Expression< 2, NumberD > &C) |
Emulates the ternary operator, returns an Expression that evaluates to A?B:C. | |
Expression< 2, NumberC > | myra::ternary (const Expression< 2, bool > &A, const Expression< 2, NumberC > &B, const Expression< 2, NumberC > &C) |
Emulates the ternary operator, returns an Expression that evaluates to A?B:C. | |
Expression< 2, NumberZ > | myra::ternary (const Expression< 2, bool > &A, const Expression< 2, NumberZ > &B, const Expression< 2, NumberZ > &C) |
Emulates the ternary operator, returns an Expression that evaluates to A?B:C. | |
bool | myra::equals (const Expression< 1, bool > &A, const Expression< 1, bool > &B) |
Given two bool-valued Expression's, returns true iff every A(i) == B(i). Used by tests. | |
bool | myra::equals (const Expression< 2, bool > &A, const Expression< 2, bool > &B) |
Given two bool-valued Expression's, returns true iff every A(i) == B(i). Used by tests. | |
Comparison operators (<,>) and logical operators (&&,||,!) for Expression's.