63 inline void set_size(
const uword n_obj_in);
64 inline void set_size(
const uword n_rows_in,
const uword n_cols_in);
66 template<
typename oT2>
110 inline void print(
const std::string extra_text =
"")
const;
111 inline void print(std::ostream& user_stream,
const std::string extra_text =
"")
const;
113 inline void fill(
const oT& x);
116 inline void reset_objects();
128 inline bool save(
const std::string name,
const file_type type =
arma_binary,
const bool print_status =
true)
const;
129 inline bool save( std::ostream& os,
const file_type type =
arma_binary,
const bool print_status =
true)
const;
131 inline bool load(
const std::string name,
const file_type type =
auto_detect,
const bool print_status =
true);
132 inline bool load( std::istream& is,
const file_type type =
auto_detect,
const bool print_status =
true);
153 inline void operator++(
int);
156 inline void operator--(
int);
176 inline void operator++(
int);
179 inline void operator--(
int);
198 inline void init(
const uword n_rows_in,
const uword n_cols_in);
200 inline void delete_objects();
201 inline void create_objects();
209 #ifdef ARMA_EXTRA_FIELD_PROTO 210 #include ARMA_INCFILE_WRAP(ARMA_EXTRA_FIELD_PROTO) 220 template<
typename oT>
inline static void reset_objects(
field< oT >& x);
221 template<
typename eT>
inline static void reset_objects(
field<
Mat<eT> >& x);
222 template<
typename eT>
inline static void reset_objects(
field<
Col<eT> >& x);
223 template<
typename eT>
inline static void reset_objects(
field<
Row<eT> >& x);
224 template<
typename eT>
inline static void reset_objects(
field<
Cube<eT> >& x);
228 template<
typename oT>
inline static bool save(
const field< oT >& x,
const std::string& name,
const file_type type, std::string& err_msg);
229 template<
typename oT>
inline static bool save(
const field< oT >& x, std::ostream& os,
const file_type type, std::string& err_msg);
230 template<
typename oT>
inline static bool load(
field< oT >& x,
const std::string& name,
const file_type type, std::string& err_msg);
231 template<
typename oT>
inline static bool load(
field< oT >& x, std::istream& is,
const file_type type, std::string& err_msg);
233 template<
typename eT>
inline static bool save(
const field<
Mat<eT> >& x,
const std::string& name,
const file_type type, std::string& err_msg);
234 template<
typename eT>
inline static bool save(
const field<
Mat<eT> >& x, std::ostream& os,
const file_type type, std::string& err_msg);
235 template<
typename eT>
inline static bool load(
field<
Mat<eT> >& x,
const std::string& name,
const file_type type, std::string& err_msg);
236 template<
typename eT>
inline static bool load(
field<
Mat<eT> >& x, std::istream& is,
const file_type type, std::string& err_msg);
238 template<
typename eT>
inline static bool save(
const field<
Col<eT> >& x,
const std::string& name,
const file_type type, std::string& err_msg);
239 template<
typename eT>
inline static bool save(
const field<
Col<eT> >& x, std::ostream& os,
const file_type type, std::string& err_msg);
240 template<
typename eT>
inline static bool load(
field<
Col<eT> >& x,
const std::string& name,
const file_type type, std::string& err_msg);
241 template<
typename eT>
inline static bool load(
field<
Col<eT> >& x, std::istream& is,
const file_type type, std::string& err_msg);
243 template<
typename eT>
inline static bool save(
const field<
Row<eT> >& x,
const std::string& name,
const file_type type, std::string& err_msg);
244 template<
typename eT>
inline static bool save(
const field<
Row<eT> >& x, std::ostream& os,
const file_type type, std::string& err_msg);
245 template<
typename eT>
inline static bool load(
field<
Row<eT> >& x,
const std::string& name,
const file_type type, std::string& err_msg);
246 template<
typename eT>
inline static bool load(
field<
Row<eT> >& x, std::istream& is,
const file_type type, std::string& err_msg);
248 template<
typename eT>
inline static bool save(
const field<
Cube<eT> >& x,
const std::string& name,
const file_type type, std::string& err_msg);
249 template<
typename eT>
inline static bool save(
const field<
Cube<eT> >& x, std::ostream& os,
const file_type type, std::string& err_msg);
250 template<
typename eT>
inline static bool load(
field<
Cube<eT> >& x,
const std::string& name,
const file_type type, std::string& err_msg);
251 template<
typename eT>
inline static bool load(
field<
Cube<eT> >& x, std::istream& is,
const file_type type, std::string& err_msg);
const mtGlueCube< uword, T1, T2, glue_rel_eq > operator==(const BaseCube< typename T1::elem_type, T1 > &X, const BaseCube< typename T1::elem_type, T2 > &Y)
const uword n_rows
number of rows in the field (read-only)
const uword n_cols
number of columns in the field (read-only)
const mtGlueCube< uword, T1, T2, glue_rel_noteq > operator!=(const BaseCube< typename T1::elem_type, T1 > &X, const BaseCube< typename T1::elem_type, T2 > &Y)
arma_inline const eOpCube< T1, eop_scalar_times > operator*(const BaseCube< typename T1::elem_type, T1 > &X, const typename T1::elem_type k)
BaseCube * scalar.
arma_aligned oT ** mem
pointer to memory used by the object
Class for column vectors (matrices with only one column)
Armadillo binary format, with information about matrix type and size.
arma_aligned field< oT > & M
Class for row vectors (matrices with only one row)
arma_aligned const field< oT > & M
std::ostream & operator<<(std::ostream &o, const basic_format< T1, T2 > &X)
const uword n_elem
number of elements in the field (read-only)
Automatically detect the file type (file must be one of the following types)