13 #include <Eigen/Eigenvalues> 30 MatrixType symmA = a.adjoint() * a + a1.adjoint() * a1;
52 ei2.setMaxIterations(1).compute(a);
62 MatrixType id = MatrixType::Identity(rows, cols);
65 if (rows > 2 && rows < 20)
68 a(0,0) = std::numeric_limits<typename MatrixType::RealScalar>::quiet_NaN();
76 eig.compute(a.adjoint() *
a);
97 MatrixType a = MatrixType::Random(m.rows(),m.cols());
138 #ifdef EIGEN_TEST_PART_2 146 double scale = 1e-200;
#define VERIFY_RAISES_ASSERT(a)
EigenSolver & compute(const EigenBase< InputType > &matrix, bool computeEigenvectors=true)
Computes eigendecomposition of given matrix.
EigenvectorsType eigenvectors() const
Returns the eigenvectors of given matrix.
void eigensolver_verify_assert(const MatrixType &m)
void test_eigensolver_generic()
Performs a real Schur decomposition of a square matrix.
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt() const
BiCGSTAB< SparseMatrix< double > > solver
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
Matrix< SCALARA, Dynamic, Dynamic > A
ComputationInfo info() const
std::complex< RealScalar > Complex
MatrixType pseudoEigenvalueMatrix() const
Returns the block-diagonal matrix in the pseudo-eigendecomposition.
#define VERIFY_IS_APPROX(a, b)
#define VERIFY_IS_EQUAL(a, b)
const MatrixType & pseudoEigenvectors() const
Returns the pseudo-eigenvectors of given matrix.
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
SelfAdjointEigenSolver< PlainMatrixType > eig(mat, computeVectors?ComputeEigenvectors:EigenvaluesOnly)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
EigenSolver & setMaxIterations(Index maxIters)
Sets the maximum number of iterations allowed.
NumTraits< Scalar >::Real RealScalar
#define VERIFY_IS_MUCH_SMALLER_THAN(a, b)
mp::number< mp::cpp_dec_float< 100 >, mp::et_on > Real
#define TEST_SET_BUT_UNUSED_VARIABLE(X)
#define EIGEN_TEST_MAX_SIZE
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics scale
internal::nested_eval< T, 1 >::type eval(const T &xpr)
Computes eigenvalues and eigenvectors of general matrices.
The matrix class, also used for vectors and row-vectors.
void eigensolver(const MatrixType &m)
const EigenvalueType & eigenvalues() const
Returns the eigenvalues of given matrix.