ARTS 2.5.9 (git: 825fa5f2)
describe.cc
Go to the documentation of this file.
1/* Copyright (C) 2003-2012 Stefan Buehler <sbuehler@ltu.se>
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU General Public License as published by the
5 Free Software Foundation; either version 2, or (at your option) any
6 later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA. */
17
30#include "describe.h"
31
32using std::ostringstream;
33
35
39 ostringstream os;
40 os << "Tensor7 [" << x.nlibraries() << "," << x.nvitrines() << ","
41 << x.nshelves() << "," << x.nbooks() << "," << x.npages() << ","
42 << x.nrows() << "," << x.ncols() << "]";
43 return os.str();
44}
45
47
51 ostringstream os;
52 os << "Tensor6 [" << x.nvitrines() << "," << x.nshelves() << "," << x.nbooks()
53 << "," << x.npages() << "," << x.nrows() << "," << x.ncols() << "]";
54 return os.str();
55}
56
58
62 ostringstream os;
63 os << "Tensor5 [" << x.nshelves() << "," << x.nbooks() << "," << x.npages()
64 << "," << x.nrows() << "," << x.ncols() << "]";
65 return os.str();
66}
67
69
73 ostringstream os;
74 os << "Tensor4 [" << x.nbooks() << "," << x.npages() << "," << x.nrows()
75 << "," << x.ncols() << "]";
76 return os.str();
77}
78
80
84 ostringstream os;
85 os << "Tensor3 [" << x.npages() << "," << x.nrows() << "," << x.ncols()
86 << "]";
87 return os.str();
88}
89
91
95 ostringstream os;
96 os << "Matrix [" << x.nrows() << "," << x.ncols() << "]";
97 return os.str();
98}
99
101
105 ostringstream os;
106 os << "Vector [" << x.nelem() << "]";
107 return os.str();
108}
109
111
115 ostringstream os;
116 os << "Scalar (" << x << ")";
117 return os.str();
118}
A constant view of a Matrix.
Definition: matpackI.h:1065
Index nrows() const noexcept
Definition: matpackI.h:1079
Index ncols() const noexcept
Definition: matpackI.h:1080
A constant view of a Tensor3.
Definition: matpackIII.h:133
Index npages() const
Returns the number of pages.
Definition: matpackIII.h:145
Index nrows() const
Returns the number of rows.
Definition: matpackIII.h:148
Index ncols() const
Returns the number of columns.
Definition: matpackIII.h:151
A constant view of a Tensor4.
Definition: matpackIV.h:133
Index ncols() const noexcept
Definition: matpackIV.h:146
Index nrows() const noexcept
Definition: matpackIV.h:145
Index nbooks() const noexcept
Definition: matpackIV.h:143
Index npages() const noexcept
Definition: matpackIV.h:144
A constant view of a Tensor5.
Definition: matpackV.h:144
Index nrows() const noexcept
Definition: matpackV.h:157
Index ncols() const noexcept
Definition: matpackV.h:158
Index npages() const noexcept
Definition: matpackV.h:156
Index nbooks() const noexcept
Definition: matpackV.h:155
Index nshelves() const noexcept
Definition: matpackV.h:154
A constant view of a Tensor6.
Definition: matpackVI.h:150
Index nbooks() const noexcept
Definition: matpackVI.h:160
Index nvitrines() const noexcept
Definition: matpackVI.h:158
Index ncols() const noexcept
Definition: matpackVI.h:163
Index npages() const noexcept
Definition: matpackVI.h:161
Index nshelves() const noexcept
Definition: matpackVI.h:159
Index nrows() const noexcept
Definition: matpackVI.h:162
A constant view of a Tensor7.
Definition: matpackVII.h:148
Index ncols() const noexcept
Definition: matpackVII.h:164
Index npages() const noexcept
Definition: matpackVII.h:162
Index nrows() const noexcept
Definition: matpackVII.h:163
Index nlibraries() const noexcept
Definition: matpackVII.h:158
Index nvitrines() const noexcept
Definition: matpackVII.h:159
Index nshelves() const noexcept
Definition: matpackVII.h:160
Index nbooks() const noexcept
Definition: matpackVII.h:161
A constant view of a Vector.
Definition: matpackI.h:521
Index nelem() const noexcept
Returns the number of elements.
Definition: matpackI.h:547
String describe(ConstTensor7View x)
Describe Tensor7.
Definition: describe.cc:38
Header file for describe.cc.
NUMERIC Numeric
The type to use for all floating point numbers.
Definition: matpack.h:33