vnl_file_matrix.h
Go to the documentation of this file.
1 // This is core/vnl/vnl_file_matrix.h
2 #ifndef vnl_file_matrix_h_
3 #define vnl_file_matrix_h_
4 //:
5 // \file
6 // \brief Load vnl_matrix<double> from file
7 // \author Andrew W. Fitzgibbon, Oxford RRG
8 // \date 23 Dec 96
9 //
10 // \verbatim
11 // Modifications
12 // LSB (Manchester) 23/3/01 Documentation tidied
13 // \endverbatim
14 //
15 //-----------------------------------------------------------------------------
16 
17 #include <vnl/vnl_matrix.h>
18 #include "vnl/vnl_export.h"
19 
20 //: Class to load a matrix from a file.
21 template <class T>
22 class VNL_EXPORT vnl_file_matrix : public vnl_matrix<T>
23 {
24  private:
25 
26  public:
27  vnl_file_matrix(char const* filename);
28 
29  explicit operator bool () const
30  { return (ok_)? true : false; }
31  bool operator!() const
32  { return !ok_; }
33 
34  private:
35  bool ok_;
36 };
37 
38 #endif // vnl_file_matrix_h_
An ordinary mathematical matrix.
Class to load a matrix from a file.
An ordinary mathematical matrix.
Definition: vnl_adjugate.h:22