2 #ifndef vnl_file_vector_hxx_ 3 #define vnl_file_vector_hxx_ 13 # include <vcl_msvc_warnings.h> 22 std::cerr <<
"filename=" << filename <<
"\nsize=" << this->
size() <<
'\n';
24 if (filename && std::strcmp(filename,
"-")) {
25 std::ifstream o(filename);
31 std::cerr <<
"size=" << this->
size() <<
'\n';
34 std::cerr <<
"vnl_file_vector: ERROR loading from " << filename <<
'\n';
39 #undef VNL_FILE_VECTOR_INSTANTIATE 40 #define VNL_FILE_VECTOR_INSTANTIATE(T) \ 41 template class VNL_EXPORT vnl_file_vector<T > 43 #endif // vnl_file_vector_hxx_ vnl_file_vector(char const *filename)
Load vector from filename.
size_t size() const
Return the length, number of elements, dimension of this vector.
bool read_ascii(std::istream &s)
Read from text stream.
Load vnl_vector<T> from file.
Mathematical vector class, templated by type of element.