approxM static method

bool approxM(
  1. MathMatrix x,
  2. MathMatrix y
)

Implementation

static bool approxM( MathMatrix x, MathMatrix y ){
	if( x.row() != y.row() ) return false;
	if( x.col() != y.col() ) return false;
	int l = x.len();
	for( int i = 0; i < l; i++ ){
		if( !approx( x.mat( i ).toFloat(), y.mat( i ).toFloat() ) || !approx( x.mat( i ).imag(), y.mat( i ).imag() ) ) return false;
	}
	return true;
}