Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(no description)

File Size: 260 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LU:: (14 methods):
  __construct()
  getL()
  getU()
  getP()
  getPivot()
  isNonsingular()
  buildPivot()
  localisedReferenceColumn()
  applyTransformations()
  findPivot()
  pivotExchange()
  computeMultipliers()
  pivotB()
  solve()


Class: LU  - X-Ref

__construct(Matrix $matrix)   X-Ref
No description

getL()   X-Ref
Get lower triangular factor.

return: Matrix Lower triangular factor

getU()   X-Ref
Get upper triangular factor.

return: Matrix Upper triangular factor

getP()   X-Ref
Return pivot permutation vector.

return: Matrix Pivot matrix

getPivot()   X-Ref
Return pivot permutation vector.

return: array Pivot vector

isNonsingular()   X-Ref
Is the matrix nonsingular?

return: bool true if U, and hence A, is nonsingular

buildPivot()   X-Ref
No description

localisedReferenceColumn($column)   X-Ref
No description

applyTransformations($column, array $luColumn)   X-Ref
No description

findPivot($column, array $luColumn)   X-Ref
No description

pivotExchange($pivot, $column)   X-Ref
No description

computeMultipliers($diagonal)   X-Ref
No description

pivotB(Matrix $B)   X-Ref
No description

solve(Matrix $B)   X-Ref
Solve A*X = B.

param: Matrix $B a Matrix with as many rows as A and any number of columns
return: Matrix X so that L*U*X = B(piv,:)