HyperView User's Guide

Relational Operators

Relational Operators

Previous topic Next topic Expand/collapse all hidden text  

Relational Operators

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Relational binary operators accept real scalar value table arguments.  Input and output tables must have the same format, and if they are vectors or tensors, a scalar component-wise comparison is made.

The Math library contains the following Relational operators:

hmtoggle_plus1Min

Computes the minimum value of two tables.

Inputs

lhs: a real value table.

rhs: a real value table.

Outputs

answer: destination table to store the minimum of lhs and rhs.

Notes

When a corresponding value in one table is not found in the other, this operator returns the existing value.

Expression Builder

min(lhs, rhs)

Example

<call name="Min" lhs="lhs_tab" rhs="rhs_tab"

 answer="dest_tab" />

hmtoggle_plus1Max

Computes the maximum value of two tables.

Inputs

lhs: a real value table.

rhs: a real value table.

Outputs

answer: destination table to store the maximum of lhs and rhs.

Notes

When a corresponding value in one table is not found in the other, this operator returns the existing value.

Expression Builder

max(lhs, rhs)

Example

<call name="Max" lhs="lhs_tab" rhs="rhs_tab"

 answer="dest_tab" />

hmtoggle_plus1Extreme

Computes the extreme value of two tables.

Inputs

lhs: a real value table.

Rhs: a real value table.

Outputs

answer: destination table to store the extreme of lhs and rhs.

Notes

Extreme returns the absolute value between lhs and rhs, preserving the sign (the value furthest from 0.0).
When a corresponding value in one table is not found in the other, this operator returns the existing value.

Expression Builder

extreme(lhs, rhs)

Example

<call name="Extreme" lhs="lhs_tab" rhs="rhs_tab"

 answer="dest_tab" />