Changeset 36 for trunk/src/vector.cc


Ignore:
Timestamp:
Feb 12, 2004, 11:29:21 AM (19 years ago)
Author:
Peter
Message:

stop criteria for the traing modified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/vector.cc

    r30 r36  
    212212
    213213
    214 vector vector::mul_elements( const vector& other )
     214vector vector::mul_elements( const vector& other ) const
    215215{
    216216  assert( size() == other.size() );
     
    244244}
    245245
     246double vector::sum() const
     247{
     248  double sum = 0;
     249  for (int i=0; i<size(); i++)
     250   sum += gsl_vector_get( v_, i );
     251  return( sum );
     252
     253 
     254 
    246255
    247256// // Public functions (A-Z)
Note: See TracChangeset for help on using the changeset viewer.