Mercurial > hg > octave-nkf
comparison liboctave/fEIG.h @ 8339:18c4ded8612a
Add generalized eigenvalue functions
author | Jarkko Kaleva <d3roga@gmail.com> |
---|---|
date | Mon, 24 Nov 2008 10:55:50 +0100 |
parents | 82be108cc558 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8338:a35bf360b919 | 8339:18c4ded8612a |
---|---|
46 { init (a, calc_eigenvectors); } | 46 { init (a, calc_eigenvectors); } |
47 | 47 |
48 FloatEIG (const FloatMatrix& a, octave_idx_type& info, bool calc_eigenvectors = true) | 48 FloatEIG (const FloatMatrix& a, octave_idx_type& info, bool calc_eigenvectors = true) |
49 { info = init (a, calc_eigenvectors); } | 49 { info = init (a, calc_eigenvectors); } |
50 | 50 |
51 FloatEIG (const FloatMatrix& a, const FloatMatrix& b, bool calc_eigenvectors = true) | |
52 { init (a, b, calc_eigenvectors); } | |
53 | |
54 FloatEIG (const FloatMatrix& a, const FloatMatrix& b, octave_idx_type& info, bool calc_eigenvectors = true) | |
55 { info = init (a, b, calc_eigenvectors); } | |
56 | |
51 FloatEIG (const FloatComplexMatrix& a, bool calc_eigenvectors = true) | 57 FloatEIG (const FloatComplexMatrix& a, bool calc_eigenvectors = true) |
52 { init (a, calc_eigenvectors); } | 58 { init (a, calc_eigenvectors); } |
53 | 59 |
54 FloatEIG (const FloatComplexMatrix& a, octave_idx_type& info, bool calc_eigenvectors = true) | 60 FloatEIG (const FloatComplexMatrix& a, octave_idx_type& info, bool calc_eigenvectors = true) |
55 { info = init (a, calc_eigenvectors); } | 61 { info = init (a, calc_eigenvectors); } |
62 | |
63 FloatEIG (const FloatComplexMatrix& a, const FloatComplexMatrix& b, bool calc_eigenvectors = true) | |
64 { init (a, b, calc_eigenvectors); } | |
65 | |
66 FloatEIG (const FloatComplexMatrix& a, const FloatComplexMatrix& b, octave_idx_type& info, bool calc_eigenvectors = true) | |
67 { info = init (a, b, calc_eigenvectors); } | |
56 | 68 |
57 FloatEIG (const FloatEIG& a) | 69 FloatEIG (const FloatEIG& a) |
58 : lambda (a.lambda), v (a.v) { } | 70 : lambda (a.lambda), v (a.v) { } |
59 | 71 |
60 FloatEIG& operator = (const FloatEIG& a) | 72 FloatEIG& operator = (const FloatEIG& a) |
79 | 91 |
80 FloatComplexColumnVector lambda; | 92 FloatComplexColumnVector lambda; |
81 FloatComplexMatrix v; | 93 FloatComplexMatrix v; |
82 | 94 |
83 octave_idx_type init (const FloatMatrix& a, bool calc_eigenvectors); | 95 octave_idx_type init (const FloatMatrix& a, bool calc_eigenvectors); |
96 octave_idx_type init (const FloatMatrix& a, const FloatMatrix& b, bool calc_eigenvectors); | |
84 octave_idx_type init (const FloatComplexMatrix& a, bool calc_eigenvectors); | 97 octave_idx_type init (const FloatComplexMatrix& a, bool calc_eigenvectors); |
98 octave_idx_type init (const FloatComplexMatrix& a, const FloatComplexMatrix& b, bool calc_eigenvectors); | |
85 | 99 |
86 octave_idx_type symmetric_init (const FloatMatrix& a, bool calc_eigenvectors); | 100 octave_idx_type symmetric_init (const FloatMatrix& a, bool calc_eigenvectors); |
101 octave_idx_type symmetric_init (const FloatMatrix& a, const FloatMatrix& b, bool calc_eigenvectors); | |
87 octave_idx_type hermitian_init (const FloatComplexMatrix& a, bool calc_eigenvectors); | 102 octave_idx_type hermitian_init (const FloatComplexMatrix& a, bool calc_eigenvectors); |
103 octave_idx_type hermitian_init (const FloatComplexMatrix& a, const FloatComplexMatrix& b, bool calc_eigenvectors); | |
88 }; | 104 }; |
89 | 105 |
90 #endif | 106 #endif |
91 | 107 |
92 /* | 108 /* |