#include <iostream>
#include <cla3p/dense.hpp>
#include <cla3p/eigsol.hpp>
#include <cla3p/algebra.hpp>
int main()
{
std::cout << A.
info(
"A") <<
"\n" << A;
std::cout << "SYEV Decomposition of A (eigenvalues + eigenvectors)\n";
std::cout << "----------------------------------------------------\n";
std::cout <<
"Eigenvalues (real, ascending):\n" << syev.
eigenvalues() <<
"\n";
std::cout <<
"Eigenvectors:\n" << syev.
eigenvectors() <<
"\n";
std::cout << "SYEV Decomposition of A (eigenvalues only)\n";
std::cout << "------------------------------------------\n";
std::cout <<
"Eigenvalues (real, ascending):\n" << syevEigsOnly.
eigenvalues() <<
"\n";
return 0;
}
Eigenvalue decomposition solver using LAPACK SYEV/HEEV routines.
Definition lapack_syev.hpp:68
const T_Matrix & eigenvectors() const
Returns the computed eigenvectors.
void reserve(int_t n)
Pre-allocates internal buffers for a matrix of dimension n.
void decompose(const T_Matrix &mat)
Performs the eigenvalue decomposition of mat.
const T_RVector & eigenvalues() const
Returns the computed eigenvalues.
static Property SymmetricLower()
Factory method for lower-triangular symmetric property.
std::string info(const std::string &header="") const
Get information about the matrix.
static XxMatrix< real_t > random(int_t nr, int_t nc, const Property &pr=Property::General(), T_RScalar lo=T_RScalar(0), T_RScalar hi=T_RScalar(1))
XxMatrix< real_t > RdMatrix
Double precision real matrix.
Definition dense.hpp:55