vnl_fortran_copy.h
Go to the documentation of this file.
1 // This is core/vnl/vnl_fortran_copy.h
2 #ifndef vnl_fortran_copy_h_
3 #define vnl_fortran_copy_h_
4 //:
5 // \file
6 // \brief Convert row-stored matrix to column-stored
7 // \author Andrew W. Fitzgibbon, Oxford RRG
8 // \date 29 Aug 96
9 //
10 // convert C format (row-stored) matrix to fortran format (column-stored) matrix
11 //
12 // \verbatim
13 // Modifications
14 // LSB (Manchester) 23/3/01 Tidied documentation
15 // Feb.2002 - Peter Vanroose - brief doxygen comment placed on single line
16 // \endverbatim
17 //
18 //-----------------------------------------------------------------------------
19 
20 #include <vnl/vnl_matrix.h>
21 #include "vnl/vnl_export.h"
22 
23 //: Convert row-stored matrix to column-stored.
24 // Convert C format (row-stored) matrix to fortran format (column-stored) matrix.
25 template <class T>
26 class VNL_EXPORT vnl_fortran_copy
27 {
28  public:
29  // Constructors/Destructors--------------------------------------------------
30 
32 
34 
35  // Operations----------------------------------------------------------------
36  operator T*() { return data; }
37 
38  protected:
39  // Data Members--------------------------------------------------------------
40  int sz;
41  T *data;
42 
43  private:
44  // Helpers-------------------------------------------------------------------
45 };
46 
47 #endif // vnl_fortran_copy_h_
An ordinary mathematical matrix.
An ordinary mathematical matrix.
Definition: vnl_adjugate.h:22
Convert row-stored matrix to column-stored.