|
|
@ -137,9 +137,9 @@ public:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Fixme: This is very dumb
|
|
|
|
// Fixme: This is very dumb
|
|
|
|
const vector get_eigenvalues() {
|
|
|
|
const vector get_eigenvalues() {
|
|
|
|
if (this->is_diagonal())
|
|
|
|
if (this->is_diagonal())
|
|
|
|
return this->get_diagonal();
|
|
|
|
return this->get_diagonal();
|
|
|
|
return vector(0);
|
|
|
|
return vector(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const bool is_eigenvalue(cnumber z) const {
|
|
|
|
const bool is_eigenvalue(cnumber z) const {
|
|
|
|
return ((*this - (this->I() * z)).determinant() == 0);
|
|
|
|
return ((*this - (this->I() * z)).determinant() == 0);
|
|
|
|