vnl_int_matrix.h
Go to the documentation of this file.
1 // This is core/vnl/vnl_int_matrix.h
2 #ifndef vnl_int_matrix_h_
3 #define vnl_int_matrix_h_
4 //:
5 // \file
6 // \brief Specializes vnl_matrix for integers
7 // \author Andrew W. Fitzgibbon, Oxford RRG
8 // \date 27 Dec 96
9 //
10 // \verbatim
11 // Modifications
12 // LSB (Manchester) 23/3/01 Tidied documentation
13 // \endverbatim
14 //
15 //-----------------------------------------------------------------------------
16 
17 #include <vnl/vnl_matrix.h>
18 #include <vnl/vnl_error.h>
19 #include "vnl/vnl_export.h"
20 
21 //: Specializes vnl_matrix for integers, adding a vnl_matrix<double> ctor.
22 class VNL_EXPORT vnl_int_matrix : public vnl_matrix<int>
23 {
24  typedef vnl_matrix<int> Base;
25  public:
26 
27  vnl_int_matrix() = default;
28  vnl_int_matrix(char const* filename);
29  vnl_int_matrix(unsigned r, unsigned c): Base(r, c) {}
30  vnl_int_matrix(unsigned r, unsigned c, int fillvalue): Base(r, c, fillvalue) {}
33  vnl_int_matrix& operator=(const vnl_matrix<int>& d) { Base::operator=(d); return *this; }
34 };
35 
36 #endif // vnl_int_matrix_h_
vnl_matrix< T > & operator=(T const &v)
Set all elements to value v.
Definition: vnl_matrix.h:274
vnl_int_matrix(unsigned r, unsigned c, int fillvalue)
An ordinary mathematical matrix.
Specializes vnl_matrix for integers, adding a vnl_matrix<double> ctor.
An ordinary mathematical matrix.
Definition: vnl_adjugate.h:22
vnl_int_matrix(const vnl_matrix< int > &d)
vnl_int_matrix(unsigned r, unsigned c)