ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/math/RectMatrix.hpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/math/RectMatrix.hpp (file contents):
Revision 1569 by tim, Thu Oct 14 23:28:09 2004 UTC vs.
Revision 1586 by tim, Sun Oct 17 01:19:11 2004 UTC

# Line 448 | Line 448 | namespace oopse {
448  
449          return result;
450      }    
451 +
452 +    /**
453 +     * Write to an output stream
454 +     */
455 +    template<typename Real,  unsigned int Row, unsigned int Col>
456 +    std::ostream &operator<< ( std::ostream& o, const RectMatrix<Real, Row, Col>& m) {
457 +        for (unsigned int i = 0; i < Row ; i++) {
458 +            o << "("
459 +            for (unsigned int j = 0; j < Col ; j++) {
460 +                o << m(i, j) << "\t"
461 +            }
462 +            o << ")" << std::endl;
463 +        }
464 +        return o;        
465 +    }    
466   }
467   #endif //MATH_RECTMATRIX_HPP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines