Debian Codegraph @

fon/Matrix_def.h

raw
1 /* Matrix_def.h
2 *
3 * Copyright (C) 1992-2005,2008,2011-2013,2015-2019,2022,2023 Paul Boersma
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19
20 #define ooSTRUCT Matrix
21 oo_DEFINE_CLASS (Matrix, SampledXY)
22
23 #if oo_READING
24 if (Melder_debug == 45)
25 Melder_casual (U"structMatrix :: read:"
26 U" Going to read ", our ny, U" rows"
27 U" of ", our nx, U" columns.");
28 oo_VERSION_UNTIL (2)
29 oo_obsoleteMAT32 (z, ny, nx)
30 oo_VERSION_ELSE
31 oo_MAT (z, ny, nx)
32 oo_VERSION_END
33 #else
34 oo_MAT (z, ny, nx)
35 #endif
36
37 #if oo_DECLARING
38 void v1_info ()
39 override;
40 bool v_hasGetNrow () const
41 override { return true; }
42 double v_getNrow () const
43 override { return ny; }
44 bool v_hasGetNcol () const
45 override { return true; }
46 double v_getNcol () const
47 override { return nx; }
48 bool v_hasGetMatrix () const
49 override { return true; }
50 double v_getMatrix (integer irow, integer icol) const
51 override;
52 bool v_hasGetFunction2 () const
53 override { return true; }
54 double v_getFunction2 (double x, double y) const
55 override;
56 double v_getValueAtSample (integer sampleNumber, integer level, int unit) const
57 override;
58 #endif
59
60 oo_END_CLASS (Matrix)
61 #undef ooSTRUCT
62
63
64 /* End of file Matrix_def.h */