Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

(no description)

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

Defines 1 class

LUDecomposition:: (9 methods):
  __construct()
  getL()
  getU()
  getPivot()
  getDoublePivot()
  isNonsingular()
  det()
  solve()
  getSubMatrix()


Class: LUDecomposition  - X-Ref


__construct(Matrix $A)   X-Ref
Constructs Structure to access L, U and piv.

param: Matrix $A Rectangular matrix

getL()   X-Ref
Get lower triangular factor.

return: Matrix Lower triangular factor

getU()   X-Ref
Get upper triangular factor.

return: Matrix Upper triangular factor

getPivot()   X-Ref
Return pivot permutation vector.

return: array Pivot vector

getDoublePivot()   X-Ref
Alias for getPivot


isNonsingular()   X-Ref
Is the matrix nonsingular?

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

det()   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: array X so that L*U*X = B(piv,:)

getSubMatrix(array $matrix, array $RL, int $j0, int $jF)   X-Ref
No description