Changeset 35


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

function sum added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/vector.h

    r30 r35  
    166166       res = a*b; where size(a) = size(b) = size(res)
    167167    */
    168     vector vector::mul_elements( const vector& other );
     168    vector vector::mul_elements( const vector& other ) const;
    169169   
    170170   
    171     /**
     171    /**
     172       Calculates sum of all elements in vector
     173    */
     174    double vector::sum() const;
     175   
     176    /**
    172177        standard output operator is defined
    173178    */
Note: See TracChangeset for help on using the changeset viewer.