LinearAlgebra

org.appliedtopology.tda4j.LinearAlgebra
object LinearAlgebra

Small dense linear algebra over any Field: row reduction, rank and null space. Meant for the SMALL matrices that come up when asking structural questions about a hand-sized complex (the rank of a map on homology, ...); the persistence engines have their own sparse reduction and do not use this.

Attributes

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

Members list

Value members

Concrete methods

def nullspace[F](rows: Seq[Seq[F]], nCols: Int)(using field: Field { type Self = F; }): Vector[Vector[F]]

A basis of { x : A x = 0 } for the matrix A given by rows, with nCols columns (needed because rows may be empty); each basis vector has length nCols.

A basis of { x : A x = 0 } for the matrix A given by rows, with nCols columns (needed because rows may be empty); each basis vector has length nCols.

Attributes

Source
LinearAlgebra.scala
def rank[F](rows: Seq[Seq[F]]): Int

The rank of the matrix whose rows are rows.

The rank of the matrix whose rows are rows.

Attributes

Source
LinearAlgebra.scala
def rref[F](rows: Seq[Seq[F]])(using field: Field { type Self = F; }): (Vector[Vector[F]], Vector[Int])

Reduced row echelon form of rows (a list of rows, all of the same length), and the pivot column of each nonzero row of the result.

Reduced row echelon form of rows (a list of rows, all of the same length), and the pivot column of each nonzero row of the result.

Attributes

Source
LinearAlgebra.scala