Debian Codegraph @

dwtools/Configuration_and_Procrustes.cpp

raw symbols SCIP
1 /* Configuration_and_Procrustes.c
2 *
3 * Copyright (C) 1993-2019 David Weenink
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. See the GNU
13 * 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 djmw 20020424 GPL
21 djmw 20020704 Changed header NUMclasses.h to SVD.h
22 djmw 20041022 Added orthogonal argument to Configurations_to_Procrustes.
23 */
24
25 #include "Configuration_and_Procrustes.h"cxx . . $ `<file>/dwtools/Configuration_and_Procrustes.h`/
26 #include "NUM2.h"cxx . . $ `<file>/dwsys/NUM2.h`/
27
28 autoProcrustescxx . . $ autoProcrustes# Configurations_to_Procrustescxx . . $ Configurations_to_Procrustes(c2202c350b6058d9). (Configurationcxx . . $ Configuration# me, Configurationcxx . . $ Configuration# thee, bool orthogonal) {
29 try {
30 Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (mycxx . . $ `melder/melder.h:44:9`! numberOfRows == thycxx . . $ `melder/melder.h:45:9`! numberOfRows && mycxx . . $ `melder/melder.h:44:9`! numberOfColumns == thycxx . . $ `melder/melder.h:45:9`! numberOfColumns,
31 U"Configurations must have the same number of points and the same dimension.");
32
33 autoProcrustescxx . . $ autoProcrustes# p = Procrustes_createcxx . . $ Procrustes_create(322551874602f209). (mycxx . . $ `melder/melder.h:44:9`! numberOfColumnscxx . . $ structTableOfReal#numberOfColumns.);
34 NUMprocrustescxx . . $ NUMprocrustes(f3a1b3dd0f6bd4d5). (mycxx . . $ `melder/melder.h:44:9`! datacxx . . $ structTableOfReal#data..getcxx . . $ automatrix#get(b2b81450b5bdda66).(), thycxx . . $ `melder/melder.h:45:9`! datacxx . . $ structTableOfReal#data..getcxx . . $ automatrix#get(b2b81450b5bdda66).(), & p ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). rcxx . . $ structAffineTransform#r., ( orthogonal ? nullptr : & p ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). tcxx . . $ structAffineTransform#t. ), ( orthogonal ? nullptr : & p ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). scxx . . $ structProcrustes#s.) );
35 return pcxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f).;
36 } catch (MelderErrorcxx . . $ MelderError#) {
37 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Procrustes from two Configurations not created.");
38 }
39 }
40
41 /* End of file Configuration_and_Procrustes.c */