Changeset 581 for trunk/c++_tools/gslapi
- Timestamp:
- May 4, 2006, 5:08:42 PM (17 years ago)
- Location:
- trunk/c++_tools/gslapi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/c++_tools/gslapi/vector.cc
r570 r581 30 30 #include <c++_tools/utility/stl_utility.h> 31 31 #include <c++_tools/utility/utility.h> 32 #include <c++_tools/classifier/DataLookup1D.h> 32 33 33 34 34 #include <iostream> … … 165 165 166 166 167 vector::vector(const classifier::DataLookup1D& data)168 : view_(NULL), const_view_(NULL)169 {170 v_ = gsl_vector_alloc(data.size());171 for (size_t i=0; i<data.size(); i++)172 gsl_vector_set( v_, i, data(i) );173 }174 175 176 177 167 vector::~vector(void) 178 168 { -
trunk/c++_tools/gslapi/vector.h
r570 r581 39 39 40 40 namespace theplu { 41 namespace classifier {42 class DataLookup1D;43 }44 41 namespace gslapi { 45 42 … … 183 180 explicit vector(std::istream &, char sep='\0') throw (utility::IO_error,std::exception); 184 181 185 ///186 ///187 ///188 explicit vector(const classifier::DataLookup1D&);189 182 190 183 ///
Note: See TracChangeset
for help on using the changeset viewer.