Changeset 535


Ignore:
Timestamp:
Mar 3, 2006, 4:15:21 PM (16 years ago)
Author:
Peter
Message:

changed minor stupid stuff in gslapi

Location:
trunk/lib/gslapi
Files:
2 edited

Legend:

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

    r516 r535  
    77#include <c++_tools/utility/Exception.h>
    88
     9#include <cassert>
    910#include <gsl/gsl_matrix.h>
    1011#include <iostream>
     
    335336    ///
    336337    inline double& operator()(size_t row,size_t column)
    337       { return (*gsl_matrix_ptr(m_,row,column)); }
     338    { return (*gsl_matrix_ptr(m_,row,column)); }
    338339
    339340    ///
     
    342343    ///
    343344    inline const double& operator()(size_t row,size_t column) const
    344       { return (*gsl_matrix_const_ptr(m_,row,column)); }
     345    { return (*gsl_matrix_const_ptr(m_,row,column)); }
    345346
    346347    ///
  • trunk/lib/gslapi/vector.cc

    r527 r535  
    144144  {
    145145    v_ = gsl_vector_alloc(data.size());
    146     size_t n=0;
    147     for (size_t i=0; i<data.size(); i++)
    148       gsl_vector_set( v_, n++, data(i) );
     146    for (size_t i=0; i<data.size(); i++){
     147      std::cout << "i " << i << std::endl;
     148      gsl_vector_set( v_, i, data(i) );
     149    }
    149150   
    150151  }
Note: See TracChangeset for help on using the changeset viewer.