dual_solve#
- rateslib.dual.dual_solve(A, b, allow_lsq=False, types=(<class 'rateslib.rs.Dual'>, <class 'rateslib.rs.Dual'>))#
Solve a linear system of equations involving dual number data types.
The x value is found for the equation \(Ax=b\).
- Parameters:
A (2-d array) – Left side matrix of values.
b (1-d array) – Right side vector of values.
allow_lsq (bool) – Whether to allow solutions for non-square A, i.e. when len(b) > len(x).
types (tuple) – Defining the input data type elements of A and b, e.g. (float, float) or (Dual, Dual).
- Return type:
1-d array