|
MatrixDivide Method (Single, Single, Boolean)
|
Divides two matrices by multiplying A by the inverse of B.
Namespace:
Accord.Math
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static float[][] Divide(
this float[][] a,
float[][] b,
bool leastSquares = false
)
<ExtensionAttribute>
Public Shared Function Divide (
a As Single()(),
b As Single()(),
Optional leastSquares As Boolean = false
) As Single()()
Request Example
View SourceParameters
- a
- Type: SystemSingle
The first matrix. - b
- Type: SystemSingle
The second matrix (which will be inverted). - leastSquares (Optional)
- Type: SystemBoolean
True to produce a solution even if the
b is singular; false otherwise. Default is false.
Return Value
Type:
SingleThe result from the division
AB^-1 of the given matrices.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also