<< mps_greaterequal Comparison functions mps_isinf >>

mpscilab >> mpscilab > Comparison functions > mps_isequal

mps_isequal

Equality test

Calling Sequence

rop = mps_isequal( op1, op2 )

Arguments

rop

Scilab boolean scalar

op1, op2

multi-precision or Scilab matrices

Description

Compares op1 and op2, return True if they are exactly equal.

Usage notes

Each elements are compared and considered up to their full precision. Many of Scilab native functions will not agree exactly with those computed by MPScilab even when using the same precision(53).

Examples

// Equality test between two MPS matrices.
A = [1 2; 3 4]
B = [1 2; 3 4]
mpsA = mps_init2(A,100)
mpsB = mps_init2(B,100)
rop = mps_isequal(mpsA,mpsB)
<< mps_greaterequal Comparison functions mps_isinf >>