public class JacobiDouble extends Object
Constructor and Description |
---|
JacobiDouble(double[][] matrix) |
JacobiDouble(double[][] matrix,
int maxSweeps) |
Modifier and Type | Method and Description |
---|---|
static double[] |
getColumn(double[][] matrix,
int i) |
double[][] |
getEigenMatrix() |
double[] |
getEigenValues()
returns the eigenvalues corresponding to
the eigenvectors
|
double[][] |
getEigenVectors()
returns the eigenvectors as an array,
such that result[0] is the first vector
|
int |
getNumberOfRotations()
returns the number of rotations needed to
converge
|
static void |
main(String[] args) |
static double[][] |
matMult(double[][] m1,
double[][] m2) |
static String |
toString(double[] doubleArray) |
static String |
toString(double[][] double2Array) |
static double[][] |
transpose(double[][] m) |
static double[] |
vecMult(double[][] m,
double[] v) |
public JacobiDouble(double[][] matrix)
public JacobiDouble(double[][] matrix, int maxSweeps)
public double[][] getEigenVectors()
public double[][] getEigenMatrix()
public double[] getEigenValues()
public int getNumberOfRotations()
public static String toString(double[] doubleArray)
public static String toString(double[][] double2Array)
public static double[] getColumn(double[][] matrix, int i)
public static double[][] matMult(double[][] m1, double[][] m2)
public static double[] vecMult(double[][] m, double[] v)
public static double[][] transpose(double[][] m)
public static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.