Changeset 1130 for trunk/yat/utility/VectorConstView.cc
- Timestamp:
- Feb 23, 2008, 7:49:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/VectorConstView.cc
r1121 r1130 34 34 35 35 VectorConstView::VectorConstView(const VectorConstView& other) 36 : VectorBase( other.gsl_vector_p()), const_view_(NULL)36 : VectorBase(), const_view_(NULL) 37 37 { 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); 38 42 } 39 43 40 44 41 45 VectorConstView::VectorConstView(const VectorBase& other) 42 : VectorBase( other.gsl_vector_p()), const_view_(NULL)46 : VectorBase(), const_view_(NULL) 43 47 { 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); 44 52 } 45 53
Note: See TracChangeset
for help on using the changeset viewer.