Dense Linear Algebra functions (solve, inverse, etc).
arrayfire.lapack.
cholesky
(A, is_upper=True)[source]¶
Cholesky decomposition
A 2 dimensional, symmetric, positive definite matrix.
Specifies if output R is upper triangular (if True) or lower triangular (if False).
R - triangular matrix.
info - 0 if decomposition sucessful.
arrayfire.lapack.
cholesky_inplace
(A, is_upper=True)[source]¶
In place Cholesky decomposition.
a 2 dimensional, symmetric, positive definite matrix.
Trinangular matrix on exit.
Specifies if output R is upper triangular (if True) or lower triangular (if False).
0 if decomposition sucessful.
arrayfire.lapack.
det
(A)[source]¶
Determinant of a matrix.
A 2 dimensional arrayfire array
Determinant of the matrix.
arrayfire.lapack.
inverse
(A, options=<MATPROP.NONE: 0>)[source]¶
Invert a matrix.
A 2 dimensional arrayfire array
Additional options to speed up computations.
Currently needs to be one of af.MATPROP.NONE.
A 2 dimensional array that is the inverse of A
arrayfire.lapack.
is_lapack_available
()[source]¶
Function to check if the arrayfire library was built with lapack support.
arrayfire.lapack.
lu
(A)[source]¶
LU decomposition.
A 2 dimensional arrayfire array.
L - Lower triangular matrix.
U - Upper triangular matrix.
P - Permutation array.
arrayfire.lapack.
lu_inplace
(A, pivot='lapack')[source]¶
In place LU decomposition.
a 2 dimensional arrayfire array on entry.
Contains L in the lower triangle on exit.
Contains U in the upper triangle on exit.
Permutation array.
arrayfire.lapack.
norm
(A, norm_type=<NORM.VECTOR_2: 2>, p=1.0, q=1.0)[source]¶
Norm of an array or a matrix.
A 1 or 2 dimensional arrayfire array
Type of norm to be calculated.
Used only if norm_type is one of af.NORM.VECTOR_P, af.NORM_MATRIX_L_PQ
Used only if norm_type is af.NORM_MATRIX_L_PQ
norm of the input
arrayfire.lapack.
pinverse
(A, tol=1e-06, options=<MATPROP.NONE: 0>)[source]¶
Find pseudo-inverse(Moore-Penrose) of a matrix.
A 2 dimensional arrayfire input matrix array
Tolerance for calculating rank
Currently needs to be af.MATPROP.NONE.
Additional options may speed up computation in the future
A 2 dimensional array that is the pseudo-inverse of A
arrayfire.lapack.
qr
(A)[source]¶
QR decomposition.
A 2 dimensional arrayfire array.
Q - Orthogonal matrix.
R - Upper triangular matrix.
T - Vector containing additional information to solve a least squares problem.
arrayfire.lapack.
qr_inplace
(A)[source]¶
In place QR decomposition.
a 2 dimensional arrayfire array on entry.
Packed Q and R matrices on exit.
Vector containing additional information to solve a least squares problem.
arrayfire.lapack.
rank
(A, tol=1e-05)[source]¶
Rank of a matrix.
A 2 dimensional arrayfire array
Tolerance for calculating rank
Rank of A within the given tolerance
arrayfire.lapack.
solve
(A, B, options=<MATPROP.NONE: 0>)[source]¶
Solve a system of linear equations.
A 2 dimensional arrayfire array representing the coefficients of the system.
A 1 or 2 dimensional arrayfire array representing the constants of the system.
Additional options to speed up computations.
Currently needs to be one of af.MATPROP.NONE, af.MATPROP.LOWER, af.MATPROP.UPPER.
A 1 or 2 dimensional arrayfire array representing the unknowns in the system.
arrayfire.lapack.
solve_lu
(A, P, B, options=<MATPROP.NONE: 0>)[source]¶
Solve a system of linear equations, using LU decomposition.
A 2 dimensional arrayfire array representing the coefficients of the system.
This matrix should be decomposed previously using lu_inplace(A).
Permutation array.
This array is the output of an earlier call to lu_inplace(A)
A 1 or 2 dimensional arrayfire array representing the constants of the system.
A 1 or 2 dimensional arrayfire array representing the unknowns in the system.
arrayfire.lapack.
svd
(A)[source]¶
Singular Value Decomposition
A 2 dimensional arrayfire array.
U - A unitary matrix
S - An array containing the elements of diagonal matrix
Vt - A unitary matrix
arrayfire.lapack.
svd_inplace
(A)[source]¶
Singular Value Decomposition
A 2 dimensional arrayfire array.
U - A unitary matrix
S - An array containing the elements of diagonal matrix
Vt - A unitary matrix
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4