NE - Elementos no iguales

Este procedimiento implementa un cálculo elemental de la comparación C := A <> B, donde A, B y C son matrices.

Uso

El procedimiento almacenado NE tiene la siguiente sintaxis:
NE matrixAname,matrixBname,matrixCname )
Parámetros
matrixAname
El nombre de la matriz de entrada A.
Tipo NVARCHAR(ANY)
matrixBname
El nombre de la matriz de entrada B.
Tipo NVARCHAR(ANY)
matrixCname
El nombre de la matriz de salida C.
Tipo NVARCHAR(ANY)
Devuelve
BOOLEAN TRUE, si tiene éxito.

Detalles

Las matrices A y B deben tener las mismas dimensiones, es decir, el mismo número de filas y columnas. La matriz C recibe la misma forma. La matriz C no debe existir antes de la operación. La matriz C sólo contiene 0 y 1, correspondientes a FALSE y TRUE en las posiciones respectivas.

Ejemplos

CALL nzm..shape('1,2,3,4,5,0,6,7,8',3,3,'A');
CALL nzm..shape('1,15,5,7',3,3,'B');
CALL nzm..ne('A','B','C');
CALL nzm..print('A');
CALL nzm..print('B');
CALL nzm..print('C');
CALL nzm..delete_matrix('A');
CALL nzm..delete_matrix('B');
CALL nzm..delete_matrix('C');

 SHAPE
-------
 t
(1 row)

 SHAPE
-------
 t
(1 row)

 NE
----
 t
(1 row)

                 PRINT
-----------------------------------------
-- matrix: A --
 1, 2, 3
 4, 5, 0
 6, 7, 8
(1 row)

                  PRINT
-------------------------------------------
 -- matrix: B --
 1, 15, 5
 7, 1, 15
 5, 7, 1
(1 row)

                  PRINT
-----------------------------------------
 -- matrix: C --
 0, 1, 1
 1, 1, 1
 1, 0, 1
(1row)

 DELETE_MATRIX
---------------
 t
(1 row)

 DELETE_MATRIX
---------------
 t
(1 row)

 DELETE_MATRIX
---------------
 t
(1 row)