Mercurial > hg > octave-nkf
comparison liboctave/dDiagMatrix.h @ 8371:c3f7e2549abb
make det & inv aware of diagonal & permutation matrices
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 04 Dec 2008 12:03:45 +0100 |
parents | 445d27d79f4e |
children | e3c9102431a9 |
comparison
equal
deleted
inserted
replaced
8370:34960ba08a81 | 8371:c3f7e2549abb |
---|---|
26 | 26 |
27 #include "MDiagArray2.h" | 27 #include "MDiagArray2.h" |
28 | 28 |
29 #include "dRowVector.h" | 29 #include "dRowVector.h" |
30 #include "dColVector.h" | 30 #include "dColVector.h" |
31 #include "DET.h" | |
31 | 32 |
32 #include "mx-defs.h" | 33 #include "mx-defs.h" |
33 | 34 |
34 class | 35 class |
35 OCTAVE_API | 36 OCTAVE_API |
96 | 97 |
97 // other operations | 98 // other operations |
98 | 99 |
99 ColumnVector diag (octave_idx_type k = 0) const; | 100 ColumnVector diag (octave_idx_type k = 0) const; |
100 | 101 |
101 bool is_identity (void) const; | 102 DET determinant (void) const; |
103 double rcond (void) const; | |
102 | 104 |
103 // i/o | 105 // i/o |
104 | 106 |
105 friend OCTAVE_API std::ostream& operator << (std::ostream& os, const DiagMatrix& a); | 107 friend OCTAVE_API std::ostream& operator << (std::ostream& os, const DiagMatrix& a); |
106 | 108 |