src/matrix.cpp
/**
 * Print values on any stream
 * @param out The stream to be printed on
 */
Print values on any stream
@param out The stream to be printed on
Print values on any stream @param out The stream to be printed on
void Matrix::print(std::ostream &out) const {
    out << "(";
    for (int i = 0; i < 2; ++i) {
        for (int j = 0; j < 2; ++j) {
            out << matrix[i][j];
            if (!(i == 1 && j == 1)) {
                out << " ";
            }
        }
    }
    out << ")" << std::endl;
}
void Matrix :: print ( std :: ostream & out ) const { out << " " ; for ( int i = 0 ; i < 2 ; ++ i ) { for ( int j = 0 ; j < 2 ; ++ j ) { out << matrix [ i ] [ j ] ; if ( ! ( i == 1 && j == 1 ) ) { out << " " ; } } } out << " " << std :: endl ; }
Print values on any stream
 @param out The stream to be printed on
Print values on any stream @param out The stream to be printed on