Changeset 357


Ignore:
Timestamp:
Aug 3, 2005, 4:53:06 PM (18 years ago)
Author:
Peter
Message:

updated doc and set precision to 12 for vector operator <<

Location:
trunk/lib/gslapi
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/gslapi/matrix.cc

    r301 r357  
    199199    s.setf( ios::dec );
    200200    s.precision(12);
    201     // Peter, end with an "\n" to make it compatible with stream constructor
    202201    for(size_t i=0, j=0; i<m.rows(); i++)
    203202      for (j=0; j<m.columns(); j++) {
  • trunk/lib/gslapi/matrix.h

    r321 r357  
    249249  ///
    250250  /// The output operator for the matrix class.
    251   /// @todo remove the ending \n
     251  ///
    252252  std::ostream& operator<< (std::ostream& s, const matrix&);
    253253
  • trunk/lib/gslapi/vector.cc

    r343 r357  
    209209  {
    210210    s.setf(std::ios::fixed);
    211 
     211    s.precision(12);
    212212    for (size_t j = 0; j < a.size(); ++j) {
    213213      s << a[j];
  • trunk/lib/gslapi/vector.h

    r343 r357  
    384384  ///
    385385  /// The output operator for the vector class.
    386   /// @todo make higher precision.
     386  ///
    387387  std::ostream& operator<<(std::ostream&, const vector& );
    388388
Note: See TracChangeset for help on using the changeset viewer.