SVD class Null safety

Singular Value Decomposition. For an m-by-n matrix A with m >= n, the singular value decomposition is an m-by-n orthogonal matrix U, an n-by-n diagonal matrix S, and an n-by-n orthogonal matrix V so that A = USV'. The singular values, sigma[k] = S[k][k], are ordered so that sigma[0] >= sigma[1] >= ... >= sigma[n-1]. The singular value decompostion always exists, so the constructor will never fail. The matrix condition number and the effective numerical rank can be computed from this decomposition.


  1. "Jama". Retrieved 2019-07-19.
  2. "Jama Github". Retrieved 2019-07-19.
  3. "Apache Commons Math Github". Retrieved 2019-07-19.


var svd = SVD(Array2d([
  Array([4.0, 2.0, 1.0]),
  Array([16.0, 4.0, 1.0]),
  Array([64.0, 8.0, 1.0])
var u = svd.U();
var s = svd.S();


/* output:
  Array([0.06370191, 0.63944931, -0.76618969]),
  Array([0.24598854, 0.73399958,  0.63303575]),
  Array([0.96717718, -0.22879947, -0.11054003])

  Array([66.69193778, 0.0, 0.0]),
  Array([0.0, 2.66694684, 0.0]),
  Array([0.0, 0.0, 0.26986934]),


  1. "svd Singular value decomposition".;jsessionid=b19a9f98e76836a49be98bcce77c . Retrieved 2021-05-17.
  2. "Singular Value Decomposition more columns than rows". . Retrieved 2021-05-17.
  3. "Wolfram Alpha". . Retrieved 2021-05-17.
  4. "Jama Singular Value Decomposition". . Retrieved 2021-05-17.
  5. "Scipy svd". . Retrieved 2021-05-17.
  6. "Simple SVD algorithms". . Retrieved 2021-05-17.
  7. "Library that add functionality of all maths sections that don't exist in dart:math". . Retrieved 2021-05-17.
  8. "How to Calculate the SVD from Scratch with Python". . Retrieved 2021-05-17.
  9. "Singular Value Decomposition (SVD) of a Matrix calculator". . Retrieved 2021-05-17.


SVD(Array2d Arg)
Construct the singular value decomposition Structure to access U, S and V. [...]


hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


cond() double
Two norm condition number return max(S)/min(S)
norm2() double
Two norm return max(S)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
rank() int
Effective numerical matrix rank return Number of nonnegligible singular values.
S() Array2d
Return the diagonal matrix of singular values return S
singularValues() Array
Return the one-dimensional array of singular values return diagonal of S.
toString() String
A string representation of this object. [...]
U() Array2d
Return the left singular vectors return U
V() Array2d
Return the right singular vectors return V


operator ==(Object other) bool
The equality operator. [...]