Changeset 240


Ignore:
Timestamp:
Feb 22, 2005, 12:13:00 PM (17 years ago)
Author:
Jari Häkkinen
Message:

Changed mul_elements interface, and fixed serious bug in it.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/matrix.cc

    r192 r240  
    114114
    115115
    116   matrix matrix::mul_elements(const matrix& other)
    117   {
    118     matrix res(other);
    119     gsl_matrix_mul_elements( res.m_, other.m_ );
    120     return res;
     116  void matrix::mul_elements(const matrix& other)
     117  {
     118    gsl_matrix_mul_elements( m_, other.m_ );
    121119  }
    122120
  • trunk/src/matrix.h

    r226 r240  
    9494    /// @return The result matrix.
    9595    ///
    96     matrix mul_elements(const matrix&);
     96    void mul_elements(const matrix&);
    9797
    9898    ///
Note: See TracChangeset for help on using the changeset viewer.