void aveq( const char * name, size_t n, const double *a, const double *b, double tol ) { if( !aa_veq(n, a, b, tol) ) { fprintf( stderr, "FAILED: %s\n",name); fprintf( stderr, "a: "); aa_dump_vec( stderr, a, n ); fprintf( stderr, "b: "); aa_dump_vec( stderr, b, n ); abort(); } }
bool eq( const Mat<ROWS, COLS> &other ) { return aa_veq( ROWS*COLS, &_array[0], &other[0], AA_EPSILON ); }