Ignore:
Timestamp:
Feb 23, 2008, 7:49:29 PM (15 years ago)
Author:
Peter
Message:

some docs and fixed bug in VectorConstView?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/VectorConstView.cc

    r1121 r1130  
    3434
    3535  VectorConstView::VectorConstView(const VectorConstView& other)
    36     : VectorBase(other.gsl_vector_p()), const_view_(NULL)
     36    : VectorBase(), const_view_(NULL)
    3737  {
     38    const_view_ =
     39      new gsl_vector_const_view(gsl_vector_const_subvector(other.gsl_vector_p(),
     40                                                           0, other.size()));
     41    const_vec_ = &(const_view_->vector);
    3842  }
    3943
    4044
    4145  VectorConstView::VectorConstView(const VectorBase& other)
    42     : VectorBase(other.gsl_vector_p()), const_view_(NULL)
     46    : VectorBase(), const_view_(NULL)
    4347  {
     48    const_view_ =
     49      new gsl_vector_const_view(gsl_vector_const_subvector(other.gsl_vector_p(),
     50                                                           0, other.size()));
     51    const_vec_ = &(const_view_->vector);
    4452  }
    4553
Note: See TracChangeset for help on using the changeset viewer.