| 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 ooSTRUCTcxx . . $ `fon/Matrix_def.h:20:9`! Matrix |
| 21 | oo_DEFINE_CLASScxx . . $ `sys/oo.h:176:9`! (Matrix, SampledXY) |
| 22 | |
| 23 | #if oo_READINGcxx . . $ `sys/oo.h:235:9`! |
| 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_MATcxx . . $ `sys/oo.h:82:9`! (z, ny, nx) |
| 35 | #endif |
| 36 | |
| 37 | #if oo_DECLARINGcxx . . $ `sys/oo.h:230:9`! |
| 38 | void v1_infocxx . . $ structMatrix#v1_info(49f6e7a06ebc5aa8). () |
| 39 | override; |
| 40 | bool v_hasGetNrowcxx . . $ structMatrix#v_hasGetNrow(50ce9a9e25b4a850). () const |
| 41 | override { return true; } |
| 42 | double v_getNrowcxx . . $ structMatrix#v_getNrow(21b6c25e127938e2). () const |
| 43 | override { return nycxx . . $ structSampledXY#ny.; } |
| 44 | bool v_hasGetNcolcxx . . $ structMatrix#v_hasGetNcol(50ce9a9e25b4a850). () const |
| 45 | override { return true; } |
| 46 | double v_getNcolcxx . . $ structMatrix#v_getNcol(21b6c25e127938e2). () const |
| 47 | override { return nxcxx . . $ structSampled#nx.; } |
| 48 | bool v_hasGetMatrixcxx . . $ structMatrix#v_hasGetMatrix(50ce9a9e25b4a850). () const |
| 49 | override { return true; } |
| 50 | double v_getMatrixcxx . . $ structMatrix#v_getMatrix(f7a1f362ba849873). (integercxx . . $ integer# irow, integercxx . . $ integer# icol) const |
| 51 | override; |
| 52 | bool v_hasGetFunction2cxx . . $ structMatrix#v_hasGetFunction2(50ce9a9e25b4a850). () const |
| 53 | override { return true; } |
| 54 | double v_getFunction2cxx . . $ structMatrix#v_getFunction2(726307d3d9a4aee5). (double x, double y) const |
| 55 | override; |
| 56 | double v_getValueAtSamplecxx . . $ structMatrix#v_getValueAtSample(8bbfc6ce471470c9). (integercxx . . $ integer# sampleNumber, integercxx . . $ integer# level, int unit) const |
| 57 | override; |
| 58 | #endif |
| 59 | |
| 60 | oo_END_CLASScxx . . $ `sys/oo.h:186:9`! (Matrix) |
| 61 | #undef ooSTRUCTcxx . . $ `fon/Matrix_def.h:20:9`! |
| 62 | |
| 63 | |
| 64 | /* End of file Matrix_def.h */ |