Eigenvalues and eigenvectors of a symmetric matrix – TDA's
mevs. Eigenvalues come back in descending order,
same as base R's eigen(A, symmetric = TRUE). The
eigenvectors come back as the columns of vectors,
same convention as eigen()$vectors (column i satisfies
A %*% vectors[, i] == values[i] * vectors[, i]); an
initial 2x2 test matrix was checked first and satisfied this
equally well as rows, which turned out to be a coincidence of
that specific matrix's eigenvector matrix happening to be
symmetric, not a real property of TDA's convention – worth
recording since it is exactly the kind of false confirmation a
too-simple test case can produce. As with any eigenvector, the
sign of each one is arbitrary; TDA's and R's choices need not
agree.
Usage
tda_mevs(A, dir = tempfile("tda"))Value
A list: values, the eigenvalues in descending
order; vectors, a matrix whose columns are the
corresponding unit-norm eigenvectors.
See also
Other matrix algebra:
tda_mcel(),
tda_mcent(),
tda_mch(),
tda_mcross(),
tda_mdiag(),
tda_mev(),
tda_midf(),
tda_midf1(),
tda_midf2(),
tda_midf3(),
tda_minvs(),
tda_mkmet(),
tda_mkp(),
tda_mmul(),
tda_mnc(),
tda_mnrow(),
tda_mpbl(),
tda_mpfit(),
tda_mpinv(),
tda_mpit(),
tda_mple(),
tda_mpz(),
tda_mscal1(),
tda_msqrtd(),
tda_msvd(),
tda_mwvec()