DenseMatrix

org.appliedtopology.tda4j.DenseMatrix
See theDenseMatrix companion class
object DenseMatrix

Attributes

Companion
class
Experimental
true
Source
DenseMatrix.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

The factorization P A = L U of a square matrix by Gaussian elimination with partial pivoting (the pivot of each column is its entry of largest absolute value on or below the diagonal).

The factorization P A = L U of a square matrix by Gaussian elimination with partial pivoting (the pivot of each column is its entry of largest absolute value on or below the diagonal).

Value parameters

isNonSingular

whether every pivot had absolute value at least the threshold given to DenseMatrix.lu (and was not zero).

Attributes

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

Attributes

Companion
class
Source
DenseMatrix.scala
Supertypes
class Object
trait Matchable
class Any
Self type

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.

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
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
DenseMatrix.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def apply(rows: Array[Array[Double]]): DenseMatrix

The matrix with these rows, which must all have the same length (the arrays are copied).

The matrix with these rows, which must all have the same length (the arrays are copied).

Attributes

Source
DenseMatrix.scala
def identity(n: Int): DenseMatrix

The identity matrix of order n.

The identity matrix of order n.

Attributes

Source
DenseMatrix.scala
def tabulate(rows: Int, cols: Int)(f: (Int, Int) => Double): DenseMatrix

The matrix whose entry (i, j) is f(i, j).

The matrix whose entry (i, j) is f(i, j).

Attributes

Source
DenseMatrix.scala
def zeros(rows: Int, cols: Int): DenseMatrix

The matrix of zeros with this many rows and columns.

The matrix of zeros with this many rows and columns.

Attributes

Source
DenseMatrix.scala

Concrete fields

The pivot size below which DenseMatrix.lu calls a matrix singular, unless another is given.

The pivot size below which DenseMatrix.lu calls a matrix singular, unless another is given.

Attributes

Source
DenseMatrix.scala

Givens

Givens

Attributes

Source
DenseMatrix.scala