ase calculates the \(d\)-dimensional adjacency spectral embedding of a symmetric
\(n \times n\) matrix \(M\).
ase(M,d)An \(n \times d\) matrix \(X\), defined as \(U |S|^{1/2}\)
where \(S\) is a diagonal matrix of the \(d\) leading (in absolute value) eigenvalues of \(M\), and \(U\) is a matrix of the corresponding eigenvectors.
\(X\) has an additional attribute "signs" which gives the sign of
the eigenvalue corresponding to each column.
If \(d=0\), ase returns an \(n \times 1\)
matrix of zeros.
A symmetric matrix.
A non-negative integer embedding dimension.