~wbetz/fesslix/flxeigen

« back to all changes in this revision

Viewing changes to src/flxMtx_Eigen.h

  • Committer: Wolfgang Betz
  • Date: 2016-06-17 14:28:23 UTC
  • Revision ID: wolfgang.betz@fesslix.org-20160617142823-ao5x99dj066qkckg
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Fesslix - Stochastic Analysis
 
2
 * Copyright (C) 2010-2016 Wolfgang Betz
 
3
 *
 
4
 * Fesslix is free software: you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation, either version 3 of the License, or
 
7
 * (at your option) any later version.
 
8
 *
 
9
 * Fesslix is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with Fesslix.  If not, see <http://www.gnu.org/licenses/>. 
 
16
 */
 
17
 
 
18
#pragma once
 
19
 
 
20
#include "flxMtx.h"
 
21
#include "flxeigenversion.h"
 
22
 
 
23
#if defined(_MSC_VER)
 
24
  #include "flxeigen_export.h"
 
25
#else
 
26
  #define FLXEIGEN_EXPORT
 
27
#endif
 
28
 
 
29
// -------------------------- General Interface ----------------------------------------------------------------------
 
30
 
 
31
// Mode:
 
32
//   1 -> ARP
 
33
//   2 -> GSL
 
34
//   3 -> GLS stabilized
 
35
 
 
36
 
 
37
FLXEIGEN_EXPORT void flxeigen_logInfo(std::ostream& lout);
 
38
 
 
39
 
 
40
 
 
41
/**
 
42
* @brief Calculates Eigenvalues of Amtx (symmetric)
 
43
*/
 
44
FLXEIGEN_EXPORT void MtxEigenValue(FlxMtx_baseS& Amtx, const tuint M, flxVec& EigenValues, std::vector<flxVec>& Eigenvectors, const int Mode);
 
45
 
 
46
/**
 
47
* @brief Calculates Eigenvalues of Amtx (nonsymmetric)
 
48
*/
 
49
FLXEIGEN_EXPORT void MtxEigenValue(FlxMtx& Amtx, const tuint M, flxVec& EigenValues, std::vector<flxVec>& Eigenvectors, const int Mode);
 
50
 
 
51
 
 
52
/**
 
53
* @brief Calculates Eigenvalues of a generalized matrix eigenvalue problem Ax = lBx
 
54
*/
 
55
FLXEIGEN_EXPORT void MtxEigenValue(FlxMtx_baseS& Amtx, FlxMtx_baseS& Bmtx, const tuint M, flxVec& EigenValues, std::vector<flxVec>& Eigenvectors, const int Mode);
 
56
 
 
57
 
 
58
FLXEIGEN_EXPORT void EV_orientation(const tuint M, std::vector< flxVec >& Eigenvectors);
 
59
 
 
60
 
 
61
 
 
62
 
 
63