vnl_fortran_copy_fixed.h
Go to the documentation of this file.
1 // This is core/vnl/vnl_fortran_copy_fixed.h
2 #ifndef vnl_fortran_copy_fixed_h_
3 #define vnl_fortran_copy_fixed_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 // Oct.2009 - Converted for a stack-storage fixed-size version
17 // \endverbatim
18 //
19 //-----------------------------------------------------------------------------
20 
21 #include <vnl/vnl_matrix_fixed.h>
22 #include "vnl/vnl_export.h"
23 
24 //: Convert row-stored matrix to column-stored.
25 // Convert C format (row-stored) matrix to fortran format (column-stored) matrix.
26 template <class T, unsigned R, unsigned C>
27 class VNL_EXPORT vnl_fortran_copy_fixed
28 {
29  public:
30  // Constructors/Destructors--------------------------------------------------
31 
33 
34  // Operations----------------------------------------------------------------
35  operator T*() { return data; }
36 
37  protected:
38  // Data Members--------------------------------------------------------------
39  T data[R*C];
40 
41  private:
42  // Helpers-------------------------------------------------------------------
43 };
44 
45 #endif // vnl_fortran_copy_fixed_h_
Convert row-stored matrix to column-stored.
fixed size matrix