src/matrixArrayProduct/main.cpp
void CheckMatrixArrays( const gm::Mat4f* i_matrixA, const gm::Mat4f* i_matrixB, int i_arraySize )
{
    for ( int matrixIndex = 0; matrixIndex < i_arraySize; ++matrixIndex )
    {
        if ( i_matrixA[ matrixIndex ] != i_matrixB[ matrixIndex ] )
        {
            fprintf( stderr,
                     "MatrixA[ %d ] != MatrixB[ %d ],\n%s != %s\n",
                     matrixIndex,
                     matrixIndex,
                     i_matrixA[ matrixIndex ].GetString().c_str(),
                     i_matrixB[ matrixIndex ].GetString().c_str() );
            return;
        }
    }
}
/// Helper function for checking that all the values in the two matrices arrays are equal.
Helper function for checking that all the values in the two matrices arrays are equal.
Helper function for checking that all the values in the two matrices arrays are equal .
void CheckMatrixArrays( const gm::Mat4f* i_matrixA, const gm::Mat4f* i_matrixB, int i_arraySize )
{
    for ( int matrixIndex = 0; matrixIndex < i_arraySize; ++matrixIndex )
    {
        if ( i_matrixA[ matrixIndex ] != i_matrixB[ matrixIndex ] )
        {
            fprintf( stderr,
                     "MatrixA[ %d ] != MatrixB[ %d ],\n%s != %s\n",
                     matrixIndex,
                     matrixIndex,
                     i_matrixA[ matrixIndex ].GetString().c_str(),
                     i_matrixB[ matrixIndex ].GetString().c_str() );
            return;
        }
    }
}
void CheckMatrixArrays ( const gm :: Mat4f * i_matrixA , const gm :: Mat4f * i_matrixB , int i_arraySize ) { for ( int matrixIndex = 0 ; matrixIndex < i_arraySize ; ++ matrixIndex ) { if ( i_matrixA [ matrixIndex ] != i_matrixB [ matrixIndex ] ) { fprintf ( stderr , " \n \n " , matrixIndex , matrixIndex , i_matrixA [ matrixIndex ] . GetString ( ) . c_str ( ) , i_matrixB [ matrixIndex ] . GetString ( ) . c_str ( ) ) ; return ; } } }
Helper function for checking that all the values in the two matrices arrays are equal.
Helper function for checking that all the values in the two matrices arrays are equal .