SingularValueDecomposition

org.appliedtopology.tda4j.DenseMatrix.SingularValueDecomposition
See theSingularValueDecomposition companion object

The compact singular value decomposition A = U diag(S) V^T of an m x n matrix, with p = min(m, n): singularValues are the p singular values in descending order, u is m x p and v is n x p, and both have orthonormal columns. For a singular value of 0 (or one lost in the rounding) the column of u or v is a unit vector orthogonal to the others, chosen among the standard basis directions.

Computed by one-sided Jacobi rotations (Hestenes), which keep small singular values accurate relative to their own size when the matrix is well scaled by columns, and need no tuning: they stop when every pair of columns is orthogonal to rounding. A wide matrix is decomposed through its transpose, which exchanges u and v.

Attributes

Companion
object
Source
DenseMatrix.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def rank: Int

The number of singular values above tolerance.

The number of singular values above tolerance.

Attributes

Source
DenseMatrix.scala
def rank(cutoff: Double): Int

The number of singular values above cutoff.

The number of singular values above cutoff.

Attributes

Source
DenseMatrix.scala

The pseudo-inverse solution x = V S^+ U^T b: for a consistent system the solution of least norm, for an inconsistent one the least squares solution of least norm, where S^+ inverts the singular values above tolerance and sets the rest to 0.

The pseudo-inverse solution x = V S^+ U^T b: for a consistent system the solution of least norm, for an inconsistent one the least squares solution of least norm, where S^+ inverts the singular values above tolerance and sets the rest to 0.

Attributes

Source
DenseMatrix.scala
def tolerance: Double

The cutoff below which a singular value counts as zero: max(m, n) * s_1 * 2^-52.

The cutoff below which a singular value counts as zero: max(m, n) * s_1 * 2^-52.

Attributes

Source
DenseMatrix.scala

Concrete fields

val singularValues: IndexedSeq[Double]

Attributes

Source
DenseMatrix.scala
val u: DenseMatrix

Attributes

Source
DenseMatrix.scala
val v: DenseMatrix

Attributes

Source
DenseMatrix.scala