Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Operators
See also: >= <= == < >

Function: <>
Description: <> compares elementwise. If the elements are not equal 1 is returned otherwise 0.

Usage: z = y <> x
Input:
x array
y array
Output:
z array

Note:

Example:



#(3,4) != #(3,2)

#(3,4) <> #(3,4)

x = #(1/0, -1/0, NaN, 0)

x <> x'

Result:



Contents of _tmp

[1,]        0 

[2,]        1 

Contents of _tmp

[1,]        0 

[2,]        0 

Contents of _tmp

[1,]        0        1        1        1 

[2,]        1        0        1        1 

[3,]        1        1        0        1 

[4,]        1        1        1        0 


Group: Operators
See also: >= <= == < >

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

(C) MD*TECH Method and Data Technologies, 21.9.2000