Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
Matrix\Decomposition\QR Class Reference

Public Member Functions

 __construct (Matrix $matrix)
 
 getHouseholdVectors ()
 
 getQ ()
 
 getR ()
 
 isFullRank ()
 
 solve (Matrix $B)
 Least squares solution of A*X = B.
 

Member Function Documentation

◆ solve()

Matrix\Decomposition\QR::solve ( Matrix $B)

Least squares solution of A*X = B.

Parameters
Matrix$Ba Matrix with as many rows as A and any number of columns
Exceptions
Exception
Return values
Matrixmatrix that minimizes the two norm of Q*R*X-B

The documentation for this class was generated from the following file: