/// <summary> /// Computes the eigenvectors of the specified matrix. /// </summary> /// <param name="matrix">The matrix.</param> /// <param name="numberOfIterations">The number of iterations.</param> /// <returns>The collection containing the eigenvectors of the <paramref name="matrix" />.</returns> /// <exception cref="System.ArgumentNullException">The matrix is null.</exception> /// <exception cref="ArgumentOutOfRangeException">The number of iterations is less than 1.</exception> public static Vector[] ComputeEigenvectors(Matrix matrix, Int32 numberOfIterations) { QRAlgorithm algorithm = new QRAlgorithm(matrix); algorithm.Compute(numberOfIterations); return(algorithm.Eigenvectors); }
/// <summary> /// Computes the eigenvalues of the specified matrix. /// </summary> /// <param name="matrix">The matrix.</param> /// <param name="numberOfIterations">The number of iterations.</param> /// <returns>The collection containing the eigenvalues of the <paramref name="matrix" />.</returns> /// <exception cref="System.ArgumentNullException">The matrix is null.</exception> /// <exception cref="ArgumentOutOfRangeException">The number of iterations is less than 1.</exception> public static Double[] ComputeEigenvalues(Matrix matrix, Int32 numberOfIterations) { QRAlgorithm algorithm = new QRAlgorithm(matrix); algorithm.Compute(numberOfIterations); return(algorithm.Eigenvalues); }
/// <summary> /// Computes the eigenvectors of the specified matrix. /// </summary> /// <param name="matrix">The matrix.</param> /// <returns>The collection containing the eigenvectors of the <paramref name="matrix" />.</returns> /// <exception cref="System.ArgumentNullException">The matrix is null.</exception> public static Vector[] ComputeEigenvectors(Matrix matrix) { QRAlgorithm algorithm = new QRAlgorithm(matrix); algorithm.Compute(); return(algorithm.Eigenvectors); }
/// <summary> /// Computes the eigenvalues of the specified matrix. /// </summary> /// <param name="matrix">The matrix.</param> /// <returns>The collection containing the eigenvalues of the <paramref name="matrix" />.</returns> /// <exception cref="System.ArgumentNullException">The matrix is null.</exception> public static Double[] ComputeEigenvalues(Matrix matrix) { QRAlgorithm algorithm = new QRAlgorithm(matrix); algorithm.Compute(); return(algorithm.Eigenvalues); }