예제 #1
0
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();
    }
}
예제 #2
0
파일: mat.hpp 프로젝트: BrownRiceRice/amino
 bool eq( const Mat<ROWS, COLS> &other ) {
     return aa_veq( ROWS*COLS, &_array[0], &other[0], AA_EPSILON );
 }