LinAlgLstSqrSolveT(T, T, LstSqrAlgorithm) Method
Solve linear least-squares problem
Namespace: Metas.UncLib.CoreAssembly: Metas.UncLib.Core (in Metas.UncLib.Core.dll) Version: 2.8.9053.20192
public static T[] LstSqrSolve<T>(
T[][] a,
T[] y,
LstSqrAlgorithm algorithm = LstSqrAlgorithm.QR
)
where T : new(), Object, IRealNumber<T>
Public Shared Function LstSqrSolve(Of T As {New, Object, IRealNumber(Of T)}) (
a As T()(),
y As T(),
Optional algorithm As LstSqrAlgorithm = LstSqrAlgorithm.QR
) As T()
public:
generic<typename T>
where T : gcnew(), Object, IRealNumber<T>
static array<T>^ LstSqrSolve(
array<array<T>^>^ a,
array<T>^ y,
LstSqrAlgorithm algorithm = LstSqrAlgorithm::QR
)
static member LstSqrSolve :
a : 'T[][] *
y : 'T[] *
?algorithm : LstSqrAlgorithm
(* Defaults:
let _algorithm = defaultArg algorithm LstSqrAlgorithm.QR
*)
-> 'T[] when 'T : new() and Object and IRealNumber<'T>
- a T
- Input Matrix
- y T
- Known Vector
- algorithm LstSqrAlgorithm (Optional)
- Algorithm
- T
- Real Type
TSolution Vector