max@0
|
1 // Copyright (C) 2008-2010 NICTA (www.nicta.com.au)
|
max@0
|
2 // Copyright (C) 2008-2010 Conrad Sanderson
|
max@0
|
3 //
|
max@0
|
4 // This file is part of the Armadillo C++ library.
|
max@0
|
5 // It is provided without any warranty of fitness
|
max@0
|
6 // for any purpose. You can redistribute this file
|
max@0
|
7 // and/or modify it under the terms of the GNU
|
max@0
|
8 // Lesser General Public License (LGPL) as published
|
max@0
|
9 // by the Free Software Foundation, either version 3
|
max@0
|
10 // of the License or (at your option) any later version.
|
max@0
|
11 // (see http://www.opensource.org/licenses for more info)
|
max@0
|
12
|
max@0
|
13
|
max@0
|
14 using std::cout;
|
max@0
|
15 using std::cerr;
|
max@0
|
16 using std::endl;
|
max@0
|
17 using std::ios;
|
max@0
|
18
|
max@0
|
19 template<typename eT> class Mat;
|
max@0
|
20 template<typename eT> class Col;
|
max@0
|
21 template<typename eT> class Row;
|
max@0
|
22 template<typename eT> class Cube;
|
max@0
|
23 template<typename oT> class field;
|
max@0
|
24
|
max@0
|
25 template<typename eT> class subview;
|
max@0
|
26 template<typename eT> class subview_col;
|
max@0
|
27 template<typename eT> class subview_row;
|
max@0
|
28 template<typename eT> class subview_cube;
|
max@0
|
29 template<typename oT> class subview_field;
|
max@0
|
30
|
max@0
|
31 template<typename eT> class diagview;
|
max@0
|
32
|
max@0
|
33 template<typename eT, typename T1> class subview_elem1;
|
max@0
|
34 template<typename eT, typename T1, typename T2> class subview_elem2;
|
max@0
|
35
|
max@0
|
36
|
max@0
|
37 class arma_empty_class {};
|
max@0
|
38
|
max@0
|
39 class diskio;
|
max@0
|
40
|
max@0
|
41 class op_min;
|
max@0
|
42 class op_max;
|
max@0
|
43
|
max@0
|
44 class op_strans;
|
max@0
|
45 class op_htrans;
|
max@0
|
46 class op_inv;
|
max@0
|
47 class op_sum;
|
max@0
|
48 class op_abs;
|
max@0
|
49 class op_diagmat;
|
max@0
|
50 class op_trimat;
|
max@0
|
51
|
max@0
|
52 class eop_conj;
|
max@0
|
53
|
max@0
|
54 class glue_times;
|
max@0
|
55 class glue_times_diag;
|
max@0
|
56
|
max@0
|
57 class glue_rel_lt;
|
max@0
|
58 class glue_rel_gt;
|
max@0
|
59 class glue_rel_lteq;
|
max@0
|
60 class glue_rel_gteq;
|
max@0
|
61 class glue_rel_eq;
|
max@0
|
62 class glue_rel_noteq;
|
max@0
|
63
|
max@0
|
64 class op_rel_lt_pre;
|
max@0
|
65 class op_rel_lt_post;
|
max@0
|
66 class op_rel_gt_pre;
|
max@0
|
67 class op_rel_gt_post;
|
max@0
|
68 class op_rel_lteq_pre;
|
max@0
|
69 class op_rel_lteq_post;
|
max@0
|
70 class op_rel_gteq_pre;
|
max@0
|
71 class op_rel_gteq_post;
|
max@0
|
72 class op_rel_eq;
|
max@0
|
73 class op_rel_noteq;
|
max@0
|
74
|
max@0
|
75 class gen_ones_diag;
|
max@0
|
76 class gen_ones_full;
|
max@0
|
77 class gen_zeros;
|
max@0
|
78 class gen_randu;
|
max@0
|
79 class gen_randn;
|
max@0
|
80
|
max@0
|
81
|
max@0
|
82 template<const bool, const bool, const bool, const bool> class gemm;
|
max@0
|
83 template<const bool, const bool, const bool> class gemv;
|
max@0
|
84
|
max@0
|
85
|
max@0
|
86 template< typename eT, typename gen_type> class Gen;
|
max@0
|
87
|
max@0
|
88 template< typename T1, typename op_type> class Op;
|
max@0
|
89 template< typename T1, typename eop_type> class eOp;
|
max@0
|
90 template<typename out_eT, typename T1, typename op_type> class mtOp;
|
max@0
|
91
|
max@0
|
92 template< typename T1, typename T2, typename glue_type> class Glue;
|
max@0
|
93 template< typename T1, typename T2, typename eglue_type> class eGlue;
|
max@0
|
94 template<typename out_eT, typename T1, typename T2, typename glue_type> class mtGlue;
|
max@0
|
95
|
max@0
|
96
|
max@0
|
97
|
max@0
|
98 template< typename eT, typename gen_type> class GenCube;
|
max@0
|
99
|
max@0
|
100 template< typename T1, typename op_type> class OpCube;
|
max@0
|
101 template< typename T1, typename eop_type> class eOpCube;
|
max@0
|
102 template<typename out_eT, typename T1, typename op_type> class mtOpCube;
|
max@0
|
103
|
max@0
|
104 template< typename T1, typename T2, typename glue_type> class GlueCube;
|
max@0
|
105 template< typename T1, typename T2, typename eglue_type> class eGlueCube;
|
max@0
|
106 template<typename out_eT, typename T1, typename T2, typename glue_type> class mtGlueCube;
|
max@0
|
107
|
max@0
|
108
|
max@0
|
109 template<typename T1> class Proxy;
|
max@0
|
110 template<typename T1> class ProxyCube;
|
max@0
|
111
|
max@0
|
112
|
max@0
|
113
|
max@0
|
114 //! \addtogroup injector
|
max@0
|
115 //! @{
|
max@0
|
116
|
max@0
|
117
|
max@0
|
118 struct injector_end_of_row {};
|
max@0
|
119
|
max@0
|
120 static const injector_end_of_row endr = injector_end_of_row();
|
max@0
|
121 //!< endr indicates "end of row" when using the << operator;
|
max@0
|
122 //!< similar conceptual meaning to std::endl
|
max@0
|
123
|
max@0
|
124 //! @}
|
max@0
|
125
|
max@0
|
126
|
max@0
|
127
|
max@0
|
128 //! \addtogroup diskio
|
max@0
|
129 //! @{
|
max@0
|
130
|
max@0
|
131
|
max@0
|
132 enum file_type
|
max@0
|
133 {
|
max@0
|
134 file_type_unknown,
|
max@0
|
135 auto_detect, //!< Automatically detect the file type (file must be one of the following types)
|
max@0
|
136 raw_ascii, //!< ASCII format (text), without any other information.
|
max@0
|
137 arma_ascii, //!< Armadillo ASCII format (text), with information about matrix type and size
|
max@0
|
138 csv_ascii, //!< comma separated values (CSV), without any other information
|
max@0
|
139 raw_binary, //!< raw binary format, without any other information.
|
max@0
|
140 arma_binary, //!< Armadillo binary format, with information about matrix type and size
|
max@0
|
141 pgm_binary, //!< Portable Grey Map (greyscale image)
|
max@0
|
142 ppm_binary //!< Portable Pixel Map (colour image), used by the field and cube classes
|
max@0
|
143 };
|
max@0
|
144
|
max@0
|
145
|
max@0
|
146 //! @}
|
max@0
|
147
|
max@0
|
148
|