annotate armadillo-2.4.4/include/armadillo @ 13:ac07c60aa798 slimline

Fix typo
author Chris Cannam
date Thu, 10 May 2012 10:20:23 +0100
parents 8b6102e2a9b0
children
rev   line source
max@0 1 // Copyright (C) 2008-2012 NICTA (www.nicta.com.au)
max@0 2 // Copyright (C) 2008-2012 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 #ifndef ARMA_INCLUDES
max@0 15 #define ARMA_INCLUDES
max@0 16
max@0 17
max@0 18 #include <cstdlib>
max@0 19 #include <cstring>
max@0 20 #include <climits>
max@0 21 #include <cmath>
max@0 22
max@0 23 #include <iostream>
max@0 24 #include <fstream>
max@0 25 #include <sstream>
max@0 26 #include <stdexcept>
max@0 27 #include <limits>
max@0 28 #include <algorithm>
max@0 29 #include <complex>
max@0 30 #include <vector>
max@0 31
max@0 32
max@0 33 #include "armadillo_bits/config.hpp"
max@0 34 #include "armadillo_bits/compiler_setup.hpp"
max@0 35 #include "armadillo_bits/undefine_conflicts.hpp"
max@0 36
max@0 37
max@0 38 #if defined(ARMA_USE_CXX11)
max@0 39 #include <initializer_list>
max@0 40 #endif
max@0 41
max@0 42
max@0 43 #if !defined(ARMA_HAVE_GETTIMEOFDAY) && !defined(ARMA_USE_BOOST_DATE)
max@0 44 #include <ctime>
max@0 45 #endif
max@0 46
max@0 47 #if defined(ARMA_HAVE_GETTIMEOFDAY)
max@0 48 #include <sys/time.h>
max@0 49 #undef ARMA_USE_BOOST_DATE
max@0 50 #endif
max@0 51
max@0 52
max@0 53 #if defined(ARMA_USE_BOOST_DATE)
max@0 54 #include <boost/date_time/posix_time/posix_time.hpp>
max@0 55 #endif
max@0 56
max@0 57
max@0 58 #if defined(ARMA_HAVE_STD_TR1)
max@0 59 // TODO: add handling of this functionality when use of C++11 is enabled
max@0 60 #include <tr1/cmath>
max@0 61 #include <tr1/complex>
max@0 62 #elif defined(ARMA_USE_BOOST)
max@0 63 #include <boost/math/complex.hpp>
max@0 64 #include <boost/math/special_functions/acosh.hpp>
max@0 65 #include <boost/math/special_functions/asinh.hpp>
max@0 66 #include <boost/math/special_functions/atanh.hpp>
max@0 67 #endif
max@0 68
max@0 69
max@0 70 #if defined(ARMA_USE_BOOST)
max@0 71 #if defined(ARMA_EXTRA_DEBUG)
max@0 72 #include <boost/format.hpp>
max@0 73 #include <boost/current_function.hpp>
max@0 74 #define ARMA_USE_BOOST_FORMAT
max@0 75 #endif
max@0 76 #endif
max@0 77
max@0 78
max@0 79 #include "armadillo_bits/include_atlas.hpp"
max@0 80 #include "armadillo_bits/itpp_wrap.hpp"
max@0 81
max@0 82
max@0 83 //! \namespace arma namespace for Armadillo classes and functions
max@0 84 namespace arma
max@0 85 {
max@0 86
max@0 87 // preliminaries
max@0 88
max@0 89 #include "armadillo_bits/forward_bones.hpp"
max@0 90 #include "armadillo_bits/arma_static_check.hpp"
max@0 91 #include "armadillo_bits/typedef.hpp"
max@0 92 #include "armadillo_bits/typedef_blas_int.hpp"
max@0 93 #include "armadillo_bits/format_wrap.hpp"
max@0 94 #include "armadillo_bits/arma_version.hpp"
max@0 95 #include "armadillo_bits/arma_config.hpp"
max@0 96 #include "armadillo_bits/traits.hpp"
max@0 97 #include "armadillo_bits/promote_type.hpp"
max@0 98 #include "armadillo_bits/upgrade_val.hpp"
max@0 99 #include "armadillo_bits/restrictors.hpp"
max@0 100 #include "armadillo_bits/access.hpp"
max@0 101 #include "armadillo_bits/span.hpp"
max@0 102 #include "armadillo_bits/constants.hpp"
max@0 103
max@0 104
max@0 105 //
max@0 106 // class prototypes
max@0 107
max@0 108 #include "armadillo_bits/Base_bones.hpp"
max@0 109 #include "armadillo_bits/BaseCube_bones.hpp"
max@0 110
max@0 111 #include "armadillo_bits/blas_bones.hpp"
max@0 112 #include "armadillo_bits/lapack_bones.hpp"
max@0 113 #include "armadillo_bits/atlas_bones.hpp"
max@0 114
max@0 115 #include "armadillo_bits/blas_wrapper.hpp"
max@0 116 #include "armadillo_bits/lapack_wrapper.hpp"
max@0 117 #include "armadillo_bits/atlas_wrapper.hpp"
max@0 118
max@0 119 #include "armadillo_bits/arrayops_bones.hpp"
max@0 120 #include "armadillo_bits/podarray_bones.hpp"
max@0 121 #include "armadillo_bits/auxlib_bones.hpp"
max@0 122
max@0 123 #include "armadillo_bits/injector_bones.hpp"
max@0 124
max@0 125 #include "armadillo_bits/Mat_bones.hpp"
max@0 126 #include "armadillo_bits/Col_bones.hpp"
max@0 127 #include "armadillo_bits/Row_bones.hpp"
max@0 128 #include "armadillo_bits/Cube_bones.hpp"
max@0 129
max@0 130 #include "armadillo_bits/typedef_fixed.hpp"
max@0 131
max@0 132 #include "armadillo_bits/field_bones.hpp"
max@0 133 #include "armadillo_bits/subview_bones.hpp"
max@0 134 #include "armadillo_bits/subview_elem1_bones.hpp"
max@0 135 #include "armadillo_bits/subview_field_bones.hpp"
max@0 136 #include "armadillo_bits/subview_cube_bones.hpp"
max@0 137 #include "armadillo_bits/diagview_bones.hpp"
max@0 138
max@0 139
max@0 140 #include "armadillo_bits/diskio_bones.hpp"
max@0 141 #include "armadillo_bits/wall_clock_bones.hpp"
max@0 142 #include "armadillo_bits/running_stat_bones.hpp"
max@0 143 #include "armadillo_bits/running_stat_vec_bones.hpp"
max@0 144
max@0 145 #include "armadillo_bits/Op_bones.hpp"
max@0 146 #include "armadillo_bits/OpCube_bones.hpp"
max@0 147
max@0 148 #include "armadillo_bits/eOp_bones.hpp"
max@0 149 #include "armadillo_bits/eOpCube_bones.hpp"
max@0 150
max@0 151 #include "armadillo_bits/mtOp_bones.hpp"
max@0 152 #include "armadillo_bits/mtOpCube_bones.hpp"
max@0 153
max@0 154 #include "armadillo_bits/Glue_bones.hpp"
max@0 155 #include "armadillo_bits/eGlue_bones.hpp"
max@0 156 #include "armadillo_bits/mtGlue_bones.hpp"
max@0 157
max@0 158 #include "armadillo_bits/GlueCube_bones.hpp"
max@0 159 #include "armadillo_bits/eGlueCube_bones.hpp"
max@0 160 #include "armadillo_bits/mtGlueCube_bones.hpp"
max@0 161
max@0 162 #include "armadillo_bits/eop_core_bones.hpp"
max@0 163 #include "armadillo_bits/eglue_core_bones.hpp"
max@0 164
max@0 165 #include "armadillo_bits/Gen_bones.hpp"
max@0 166 #include "armadillo_bits/GenCube_bones.hpp"
max@0 167
max@0 168 #include "armadillo_bits/op_diagmat_bones.hpp"
max@0 169 #include "armadillo_bits/op_diagvec_bones.hpp"
max@0 170 #include "armadillo_bits/op_dot_bones.hpp"
max@0 171 #include "armadillo_bits/op_inv_bones.hpp"
max@0 172 #include "armadillo_bits/op_htrans_bones.hpp"
max@0 173 #include "armadillo_bits/op_max_bones.hpp"
max@0 174 #include "armadillo_bits/op_min_bones.hpp"
max@0 175 #include "armadillo_bits/op_mean_bones.hpp"
max@0 176 #include "armadillo_bits/op_median_bones.hpp"
max@0 177 #include "armadillo_bits/op_sort_bones.hpp"
max@0 178 #include "armadillo_bits/op_sum_bones.hpp"
max@0 179 #include "armadillo_bits/op_stddev_bones.hpp"
max@0 180 #include "armadillo_bits/op_strans_bones.hpp"
max@0 181 #include "armadillo_bits/op_var_bones.hpp"
max@0 182 #include "armadillo_bits/op_repmat_bones.hpp"
max@0 183 #include "armadillo_bits/op_reshape_bones.hpp"
max@0 184 #include "armadillo_bits/op_resize_bones.hpp"
max@0 185 #include "armadillo_bits/op_cov_bones.hpp"
max@0 186 #include "armadillo_bits/op_cor_bones.hpp"
max@0 187 #include "armadillo_bits/op_shuffle_bones.hpp"
max@0 188 #include "armadillo_bits/op_prod_bones.hpp"
max@0 189 #include "armadillo_bits/op_pinv_bones.hpp"
max@0 190 #include "armadillo_bits/op_dotext_bones.hpp"
max@0 191 #include "armadillo_bits/op_flip_bones.hpp"
max@0 192 #include "armadillo_bits/op_princomp_bones.hpp"
max@0 193 #include "armadillo_bits/op_misc_bones.hpp"
max@0 194 #include "armadillo_bits/op_relational_bones.hpp"
max@0 195 #include "armadillo_bits/op_find_bones.hpp"
max@0 196 #include "armadillo_bits/op_chol_bones.hpp"
max@0 197 #include "armadillo_bits/op_cx_scalar_bones.hpp"
max@0 198 #include "armadillo_bits/op_trimat_bones.hpp"
max@0 199 #include "armadillo_bits/op_cumsum_bones.hpp"
max@0 200 #include "armadillo_bits/op_symmat_bones.hpp"
max@0 201
max@0 202 #include "armadillo_bits/glue_times_bones.hpp"
max@0 203 #include "armadillo_bits/glue_mixed_bones.hpp"
max@0 204 #include "armadillo_bits/glue_cov_bones.hpp"
max@0 205 #include "armadillo_bits/glue_cor_bones.hpp"
max@0 206 #include "armadillo_bits/glue_kron_bones.hpp"
max@0 207 #include "armadillo_bits/glue_cross_bones.hpp"
max@0 208 #include "armadillo_bits/glue_join_bones.hpp"
max@0 209 #include "armadillo_bits/glue_relational_bones.hpp"
max@0 210 #include "armadillo_bits/glue_solve_bones.hpp"
max@0 211 #include "armadillo_bits/glue_conv_bones.hpp"
max@0 212 #include "armadillo_bits/glue_toeplitz_bones.hpp"
max@0 213
max@0 214 //
max@0 215 // debugging functions
max@0 216
max@0 217 #include "armadillo_bits/debug.hpp"
max@0 218
max@0 219 //
max@0 220 //
max@0 221
max@0 222 #include "armadillo_bits/cmath_wrap.hpp"
max@0 223
max@0 224 //
max@0 225 // classes that underlay metaprogramming
max@0 226
max@0 227 #include "armadillo_bits/Proxy.hpp"
max@0 228 #include "armadillo_bits/ProxyCube.hpp"
max@0 229
max@0 230 #include "armadillo_bits/diagmat_proxy.hpp"
max@0 231
max@0 232 #include "armadillo_bits/unwrap.hpp"
max@0 233 #include "armadillo_bits/unwrap_cube.hpp"
max@0 234
max@0 235 #include "armadillo_bits/strip.hpp"
max@0 236
max@0 237 #include "armadillo_bits/Op_meat.hpp"
max@0 238 #include "armadillo_bits/OpCube_meat.hpp"
max@0 239
max@0 240 #include "armadillo_bits/mtOp_meat.hpp"
max@0 241 #include "armadillo_bits/mtOpCube_meat.hpp"
max@0 242
max@0 243 #include "armadillo_bits/Glue_meat.hpp"
max@0 244 #include "armadillo_bits/GlueCube_meat.hpp"
max@0 245
max@0 246 #include "armadillo_bits/eop_aux.hpp"
max@0 247
max@0 248 #include "armadillo_bits/eOp_meat.hpp"
max@0 249 #include "armadillo_bits/eOpCube_meat.hpp"
max@0 250
max@0 251 #include "armadillo_bits/eGlue_meat.hpp"
max@0 252 #include "armadillo_bits/eGlueCube_meat.hpp"
max@0 253
max@0 254 #include "armadillo_bits/mtGlue_meat.hpp"
max@0 255 #include "armadillo_bits/mtGlueCube_meat.hpp"
max@0 256
max@0 257 #include "armadillo_bits/Base_meat.hpp"
max@0 258 #include "armadillo_bits/BaseCube_meat.hpp"
max@0 259
max@0 260 #include "armadillo_bits/Gen_meat.hpp"
max@0 261 #include "armadillo_bits/GenCube_meat.hpp"
max@0 262
max@0 263
max@0 264 //
max@0 265 // ostream
max@0 266
max@0 267 #include "armadillo_bits/arma_ostream_bones.hpp"
max@0 268 #include "armadillo_bits/arma_ostream_meat.hpp"
max@0 269
max@0 270
max@0 271 //
max@0 272 // operators
max@0 273
max@0 274 #include "armadillo_bits/operator_plus.hpp"
max@0 275 #include "armadillo_bits/operator_minus.hpp"
max@0 276 #include "armadillo_bits/operator_times.hpp"
max@0 277 #include "armadillo_bits/operator_schur.hpp"
max@0 278 #include "armadillo_bits/operator_div.hpp"
max@0 279 #include "armadillo_bits/operator_relational.hpp"
max@0 280
max@0 281 #include "armadillo_bits/operator_cube_plus.hpp"
max@0 282 #include "armadillo_bits/operator_cube_minus.hpp"
max@0 283 #include "armadillo_bits/operator_cube_times.hpp"
max@0 284 #include "armadillo_bits/operator_cube_schur.hpp"
max@0 285 #include "armadillo_bits/operator_cube_div.hpp"
max@0 286 #include "armadillo_bits/operator_cube_relational.hpp"
max@0 287
max@0 288 #include "armadillo_bits/operator_ostream.hpp"
max@0 289
max@0 290
max@0 291 //
max@0 292 // user accessible functions
max@0 293
max@0 294 // the order of the fn_*.hpp include files matters,
max@0 295 // as some files require functionality given in preceding files
max@0 296
max@0 297 #include "armadillo_bits/fn_conv_to.hpp"
max@0 298 #include "armadillo_bits/fn_min.hpp"
max@0 299 #include "armadillo_bits/fn_max.hpp"
max@0 300 #include "armadillo_bits/fn_accu.hpp"
max@0 301 #include "armadillo_bits/fn_sum.hpp"
max@0 302 #include "armadillo_bits/fn_diagmat.hpp"
max@0 303 #include "armadillo_bits/fn_diagvec.hpp"
max@0 304 #include "armadillo_bits/fn_inv.hpp"
max@0 305 #include "armadillo_bits/fn_trace.hpp"
max@0 306 #include "armadillo_bits/fn_trans.hpp"
max@0 307 #include "armadillo_bits/fn_det.hpp"
max@0 308 #include "armadillo_bits/fn_log_det.hpp"
max@0 309 #include "armadillo_bits/fn_eig.hpp"
max@0 310 #include "armadillo_bits/fn_lu.hpp"
max@0 311 #include "armadillo_bits/fn_zeros.hpp"
max@0 312 #include "armadillo_bits/fn_ones.hpp"
max@0 313 #include "armadillo_bits/fn_eye.hpp"
max@0 314 #include "armadillo_bits/fn_misc.hpp"
max@0 315 #include "armadillo_bits/fn_elem.hpp"
max@0 316 #include "armadillo_bits/fn_norm.hpp"
max@0 317 #include "armadillo_bits/fn_dot.hpp"
max@0 318 #include "armadillo_bits/fn_randu.hpp"
max@0 319 #include "armadillo_bits/fn_randn.hpp"
max@0 320 #include "armadillo_bits/fn_trig.hpp"
max@0 321 #include "armadillo_bits/fn_mean.hpp"
max@0 322 #include "armadillo_bits/fn_median.hpp"
max@0 323 #include "armadillo_bits/fn_stddev.hpp"
max@0 324 #include "armadillo_bits/fn_var.hpp"
max@0 325 #include "armadillo_bits/fn_sort.hpp"
max@0 326 #include "armadillo_bits/fn_sort_index.hpp"
max@0 327 #include "armadillo_bits/fn_strans.hpp"
max@0 328 #include "armadillo_bits/fn_chol.hpp"
max@0 329 #include "armadillo_bits/fn_qr.hpp"
max@0 330 #include "armadillo_bits/fn_svd.hpp"
max@0 331 #include "armadillo_bits/fn_solve.hpp"
max@0 332 #include "armadillo_bits/fn_repmat.hpp"
max@0 333 #include "armadillo_bits/fn_reshape.hpp"
max@0 334 #include "armadillo_bits/fn_resize.hpp"
max@0 335 #include "armadillo_bits/fn_cov.hpp"
max@0 336 #include "armadillo_bits/fn_cor.hpp"
max@0 337 #include "armadillo_bits/fn_shuffle.hpp"
max@0 338 #include "armadillo_bits/fn_prod.hpp"
max@0 339 #include "armadillo_bits/fn_eps.hpp"
max@0 340 #include "armadillo_bits/fn_pinv.hpp"
max@0 341 #include "armadillo_bits/fn_rank.hpp"
max@0 342 #include "armadillo_bits/fn_kron.hpp"
max@0 343 #include "armadillo_bits/fn_flip.hpp"
max@0 344 #include "armadillo_bits/fn_as_scalar.hpp"
max@0 345 #include "armadillo_bits/fn_princomp.hpp"
max@0 346 #include "armadillo_bits/fn_cross.hpp"
max@0 347 #include "armadillo_bits/fn_join.hpp"
max@0 348 #include "armadillo_bits/fn_conv.hpp"
max@0 349 #include "armadillo_bits/fn_trunc_exp.hpp"
max@0 350 #include "armadillo_bits/fn_trunc_log.hpp"
max@0 351 #include "armadillo_bits/fn_toeplitz.hpp"
max@0 352 #include "armadillo_bits/fn_trimat.hpp"
max@0 353 #include "armadillo_bits/fn_cumsum.hpp"
max@0 354 #include "armadillo_bits/fn_symmat.hpp"
max@0 355 #include "armadillo_bits/fn_syl_lyap.hpp"
max@0 356
max@0 357 //
max@0 358 // class meat
max@0 359
max@0 360 #include "armadillo_bits/gemv.hpp"
max@0 361 #include "armadillo_bits/gemm.hpp"
max@0 362 #include "armadillo_bits/gemm_mixed.hpp"
max@0 363
max@0 364 #include "armadillo_bits/eop_core_meat.hpp"
max@0 365 #include "armadillo_bits/eglue_core_meat.hpp"
max@0 366
max@0 367 #include "armadillo_bits/arrayops_meat.hpp"
max@0 368 #include "armadillo_bits/podarray_meat.hpp"
max@0 369 #include "armadillo_bits/auxlib_meat.hpp"
max@0 370
max@0 371 #include "armadillo_bits/injector_meat.hpp"
max@0 372
max@0 373 #include "armadillo_bits/Mat_meat.hpp"
max@0 374 #include "armadillo_bits/Col_meat.hpp"
max@0 375 #include "armadillo_bits/Row_meat.hpp"
max@0 376 #include "armadillo_bits/Cube_meat.hpp"
max@0 377 #include "armadillo_bits/field_meat.hpp"
max@0 378 #include "armadillo_bits/subview_meat.hpp"
max@0 379 #include "armadillo_bits/subview_elem1_meat.hpp"
max@0 380 #include "armadillo_bits/subview_field_meat.hpp"
max@0 381 #include "armadillo_bits/subview_cube_meat.hpp"
max@0 382 #include "armadillo_bits/diagview_meat.hpp"
max@0 383
max@0 384 #include "armadillo_bits/diskio_meat.hpp"
max@0 385 #include "armadillo_bits/wall_clock_meat.hpp"
max@0 386 #include "armadillo_bits/running_stat_meat.hpp"
max@0 387 #include "armadillo_bits/running_stat_vec_meat.hpp"
max@0 388
max@0 389 #include "armadillo_bits/op_diagmat_meat.hpp"
max@0 390 #include "armadillo_bits/op_diagvec_meat.hpp"
max@0 391 #include "armadillo_bits/op_dot_meat.hpp"
max@0 392 #include "armadillo_bits/op_inv_meat.hpp"
max@0 393 #include "armadillo_bits/op_htrans_meat.hpp"
max@0 394 #include "armadillo_bits/op_max_meat.hpp"
max@0 395 #include "armadillo_bits/op_min_meat.hpp"
max@0 396 #include "armadillo_bits/op_mean_meat.hpp"
max@0 397 #include "armadillo_bits/op_median_meat.hpp"
max@0 398 #include "armadillo_bits/op_sort_meat.hpp"
max@0 399 #include "armadillo_bits/op_sum_meat.hpp"
max@0 400 #include "armadillo_bits/op_stddev_meat.hpp"
max@0 401 #include "armadillo_bits/op_strans_meat.hpp"
max@0 402 #include "armadillo_bits/op_var_meat.hpp"
max@0 403 #include "armadillo_bits/op_repmat_meat.hpp"
max@0 404 #include "armadillo_bits/op_reshape_meat.hpp"
max@0 405 #include "armadillo_bits/op_resize_meat.hpp"
max@0 406 #include "armadillo_bits/op_cov_meat.hpp"
max@0 407 #include "armadillo_bits/op_cor_meat.hpp"
max@0 408 #include "armadillo_bits/op_shuffle_meat.hpp"
max@0 409 #include "armadillo_bits/op_prod_meat.hpp"
max@0 410 #include "armadillo_bits/op_pinv_meat.hpp"
max@0 411 #include "armadillo_bits/op_dotext_meat.hpp"
max@0 412 #include "armadillo_bits/op_flip_meat.hpp"
max@0 413 #include "armadillo_bits/op_princomp_meat.hpp"
max@0 414 #include "armadillo_bits/op_misc_meat.hpp"
max@0 415 #include "armadillo_bits/op_relational_meat.hpp"
max@0 416 #include "armadillo_bits/op_find_meat.hpp"
max@0 417 #include "armadillo_bits/op_chol_meat.hpp"
max@0 418 #include "armadillo_bits/op_cx_scalar_meat.hpp"
max@0 419 #include "armadillo_bits/op_trimat_meat.hpp"
max@0 420 #include "armadillo_bits/op_cumsum_meat.hpp"
max@0 421 #include "armadillo_bits/op_symmat_meat.hpp"
max@0 422
max@0 423 #include "armadillo_bits/glue_times_meat.hpp"
max@0 424 #include "armadillo_bits/glue_mixed_meat.hpp"
max@0 425 #include "armadillo_bits/glue_cov_meat.hpp"
max@0 426 #include "armadillo_bits/glue_cor_meat.hpp"
max@0 427 #include "armadillo_bits/glue_kron_meat.hpp"
max@0 428 #include "armadillo_bits/glue_cross_meat.hpp"
max@0 429 #include "armadillo_bits/glue_join_meat.hpp"
max@0 430 #include "armadillo_bits/glue_relational_meat.hpp"
max@0 431 #include "armadillo_bits/glue_solve_meat.hpp"
max@0 432 #include "armadillo_bits/glue_conv_meat.hpp"
max@0 433 #include "armadillo_bits/glue_toeplitz_meat.hpp"
max@0 434 }
max@0 435
max@0 436 #endif
max@0 437