|   |  | 
Solve a system of equations. More...
| Functions | |
| AFAPI array | solveLU (const array &a, const array &piv, const array &b, const matProp options=AF_MAT_NONE) | 
| C++ Interface for solving a system of equations.  More... | |
| AFAPI af_err | af_solve_lu (af_array *x, const af_array a, const af_array piv, const af_array b, const af_mat_prop options) | 
| C Interface for solving a system of equations.  More... | |
Solve a system of equations.
This function takes a co-efficient matrix A and an output matrix B as inputs to solve the following equation for X
\(A * X = B\)
This operation can be done in ArrayFire using the following code snippet.
This function along with af::lu split up the task af::solve performs for square matrices.
| AFAPI af_err af_solve_lu | ( | af_array * | x, | 
| const af_array | a, | ||
| const af_array | piv, | ||
| const af_array | b, | ||
| const af_mat_prop | options | ||
| ) | 
C Interface for solving a system of equations.
| [out] | x | will contain the matrix of unknown variables | 
| [in] | a | is the output matrix from packed LU decomposition of the coefficient matrix | 
| [in] | piv | is the pivot array from packed LU decomposition of the coefficient matrix | 
| [in] | b | is the matrix of measured values | 
| [in] | options | determining various properties of matrix a | 
options currently needs to be AF_MAT_NONE | AFAPI array af::solveLU | ( | const array & | a, | 
| const array & | piv, | ||
| const array & | b, | ||
| const matProp | options = AF_MAT_NONE | ||
| ) | 
C++ Interface for solving a system of equations.
| [in] | a | is the output matrix from packed LU decomposition of the coefficient matrix | 
| [in] | piv | is the pivot array from packed LU decomposition of the coefficient matrix | 
| [in] | b | is the matrix of measured values | 
| [in] | options | determining various properties of matrix a | 
x, the matrix of unknown variablesoptions currently needs to be AF_MAT_NONE