Mercurial > hg > segmenter-vamp-plugin
comparison armadillo-3.900.4/include/armadillo_bits/arma_ostream_bones.hpp @ 49:1ec0e2823891
Switch to using subrepo copies of qm-dsp, nnls-chroma, vamp-plugin-sdk; update Armadillo version; assume build without external BLAS/LAPACK
author | Chris Cannam |
---|---|
date | Thu, 13 Jun 2013 10:25:24 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
48:69251e11a913 | 49:1ec0e2823891 |
---|---|
1 // Copyright (C) 2008-2011 NICTA (www.nicta.com.au) | |
2 // Copyright (C) 2008-2011 Conrad Sanderson | |
3 // | |
4 // This Source Code Form is subject to the terms of the Mozilla Public | |
5 // License, v. 2.0. If a copy of the MPL was not distributed with this | |
6 // file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
7 | |
8 | |
9 //! \addtogroup arma_ostream | |
10 //! @{ | |
11 | |
12 | |
13 | |
14 class arma_ostream_state | |
15 { | |
16 private: | |
17 | |
18 const ios::fmtflags orig_flags; | |
19 const std::streamsize orig_precision; | |
20 const std::streamsize orig_width; | |
21 const char orig_fill; | |
22 | |
23 | |
24 public: | |
25 | |
26 inline arma_ostream_state(const std::ostream& o); | |
27 | |
28 inline void restore(std::ostream& o) const; | |
29 }; | |
30 | |
31 | |
32 | |
33 class arma_ostream | |
34 { | |
35 public: | |
36 | |
37 template<typename eT> inline static std::streamsize modify_stream(std::ostream& o, const eT* data, const uword n_elem); | |
38 template<typename T> inline static std::streamsize modify_stream(std::ostream& o, const std::complex<T>* data, const uword n_elem); | |
39 template<typename eT> inline static std::streamsize modify_stream(std::ostream& o, typename SpMat<eT>::const_iterator begin, const uword n_elem, const typename arma_not_cx<eT>::result* junk = 0); | |
40 template<typename T> inline static std::streamsize modify_stream(std::ostream& o, typename SpMat<T>::const_iterator begin, const uword n_elem, const typename arma_cx_only<T>::result* junk = 0); | |
41 | |
42 template<typename eT> inline static void print_elem_zero(std::ostream& o, const bool modify); | |
43 | |
44 template<typename eT> arma_inline static void print_elem(std::ostream& o, const eT& x, const bool modify); | |
45 template<typename T> inline static void print_elem(std::ostream& o, const std::complex<T>& x, const bool modify); | |
46 | |
47 template<typename eT> inline static void print(std::ostream& o, const Mat<eT>& m, const bool modify); | |
48 template<typename eT> inline static void print(std::ostream& o, const Cube<eT>& m, const bool modify); | |
49 | |
50 template<typename oT> inline static void print(std::ostream& o, const field<oT>& m); | |
51 template<typename oT> inline static void print(std::ostream& o, const subview_field<oT>& m); | |
52 | |
53 | |
54 template<typename eT> inline static void print_dense(std::ostream& o, const SpMat<eT>& m, const bool modify); | |
55 template<typename eT> inline static void print(std::ostream& o, const SpMat<eT>& m, const bool modify); | |
56 }; | |
57 | |
58 | |
59 | |
60 //! @} |