| 1 | #ifndef _Eigen_and_Matrix_h_ |
| 2 | #define _Eigen_and_Matrix_h_ |
| 3 | |
| 4 | /* Eigen_and_Matrix.h |
| 5 | * |
| 6 | * Copyright (C) 1993-2017 David Weenink, 2017 Paul Boersma |
| 7 | * |
| 8 | * This code is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or (at |
| 11 | * your option) any later version. |
| 12 | * |
| 13 | * This code is distributed in the hope that it will be useful, but |
| 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 20 | */ |
| 21 | |
| 22 | #include "Eigen.h" |
| 23 | #include "Matrix.h" |
| 24 | |
| 25 | autoMatrix Eigen_extractEigenvector (Eigen me, integer index, integer numberOfRows, integer numberOfColumns); |
| 26 | /* Extract eigenvector as a (reshaped) matrix */ |
| 27 | |
| 28 | autoMatrix Eigen_Matrix_to_Matrix_projectRows (Eigen me, Matrix thee, integer numberOfDimensionsToKeep); |
| 29 | /* |
| 30 | Purpose: project the rows of the matrix (thee) on the eigenspace (me). |
| 31 | */ |
| 32 | |
| 33 | autoMatrix Eigen_Matrix_to_Matrix_projectColumns (Eigen me, Matrix thee, integer numberOfDimensionsToKeep); |
| 34 | /* |
| 35 | Purpose: project the columns of the matrix (thee) on the eigenspace (me). |
| 36 | */ |
| 37 | |
| 38 | /* End of file Eigen_and_Matrix.h */ |
| 39 | #endif |