A high-performance general-purpose compute library
lapack.h File Reference
#include <af/array.h>
#include <af/defines.h>

Go to the source code of this file.

Namespaces

namespace  af
 

Functions

AFAPI void svd (array &u, array &s, array &vt, const array &in)
 C++ Interface to perform singular value decomposition. More...
 
AFAPI void svdInPlace (array &u, array &s, array &vt, array &in)
 C++ Interface to perform in-place singular value decomposition. More...
 
AFAPI void lu (array &out, array &pivot, const array &in, const bool is_lapack_piv=true)
 C++ Interface to perform LU decomposition in packed format. More...
 
AFAPI void lu (array &lower, array &upper, array &pivot, const array &in)
 C++ Interface to perform LU decomposition. More...
 
AFAPI void luInPlace (array &pivot, array &in, const bool is_lapack_piv=true)
 C++ Interface to perform in-place LU decomposition. More...
 
AFAPI void qr (array &out, array &tau, const array &in)
 C++ Interface to perform QR decomposition in packed format. More...
 
AFAPI void qr (array &q, array &r, array &tau, const array &in)
 C++ Interface to perform QR decomposition. More...
 
AFAPI void qrInPlace (array &tau, array &in)
 C++ Interface to perform QR decomposition. More...
 
AFAPI int cholesky (array &out, const array &in, const bool is_upper=true)
 C++ Interface to perform Cholesky decomposition. More...
 
AFAPI int choleskyInPlace (array &in, const bool is_upper=true)
 C++ Interface to perform in-place Cholesky decomposition. More...
 
AFAPI array solve (const array &a, const array &b, const matProp options=AF_MAT_NONE)
 C++ Interface to solve a system of equations. More...
 
AFAPI array solveLU (const array &a, const array &piv, const array &b, const matProp options=AF_MAT_NONE)
 C++ Interface to solve a system of equations. More...
 
AFAPI array inverse (const array &in, const matProp options=AF_MAT_NONE)
 C++ Interface to invert a matrix. More...
 
AFAPI array pinverse (const array &in, const double tol=1E-6, const matProp options=AF_MAT_NONE)
 C++ Interface to pseudo-invert (Moore-Penrose) a matrix. More...
 
AFAPI unsigned rank (const array &in, const double tol=1E-5)
 C++ Interface to find the rank of a matrix. More...
 
template<typename T >
det (const array &in)
 C++ Interface to find the determinant of a matrix. More...
 
AFAPI double norm (const array &in, const normType type=AF_NORM_EUCLID, const double p=1, const double q=1)
 C++ Interface to find the norm of a matrix. More...
 
AFAPI bool isLAPACKAvailable ()
 Returns true if ArrayFire is compiled with LAPACK support. More...
 
AFAPI af_err af_svd (af_array *u, af_array *s, af_array *vt, const af_array in)
 C Interface to perform singular value decomposition. More...
 
AFAPI af_err af_svd_inplace (af_array *u, af_array *s, af_array *vt, af_array in)
 C Interface to perform in-place singular value decomposition. More...
 
AFAPI af_err af_lu (af_array *lower, af_array *upper, af_array *pivot, const af_array in)
 C Interface to perform LU decomposition. More...
 
AFAPI af_err af_lu_inplace (af_array *pivot, af_array in, const bool is_lapack_piv)
 C Interface to perform in-place LU decomposition. More...
 
AFAPI af_err af_qr (af_array *q, af_array *r, af_array *tau, const af_array in)
 C Interface to perform QR decomposition. More...
 
AFAPI af_err af_qr_inplace (af_array *tau, af_array in)
 C Interface to perform QR decomposition. More...
 
AFAPI af_err af_cholesky (af_array *out, int *info, const af_array in, const bool is_upper)
 C Interface to perform Cholesky decomposition. More...
 
AFAPI af_err af_cholesky_inplace (int *info, af_array in, const bool is_upper)
 C Interface to perform in-place Cholesky decomposition. More...
 
AFAPI af_err af_solve (af_array *x, const af_array a, const af_array b, const af_mat_prop options)
 C Interface to solve 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 to solve a system of equations. More...
 
AFAPI af_err af_inverse (af_array *out, const af_array in, const af_mat_prop options)
 C Interface to invert a matrix. More...
 
AFAPI af_err af_pinverse (af_array *out, const af_array in, const double tol, const af_mat_prop options)
 C Interface to pseudo-invert (Moore-Penrose) a matrix. More...
 
AFAPI af_err af_rank (unsigned *rank, const af_array in, const double tol)
 C Interface to find the rank of a matrix. More...
 
AFAPI af_err af_det (double *det_real, double *det_imag, const af_array in)
 C Interface to find the determinant of a matrix. More...
 
AFAPI af_err af_norm (double *out, const af_array in, const af_norm_type type, const double p, const double q)
 C Interface to find the norm of a matrix. More...
 
AFAPI af_err af_is_lapack_available (bool *out)
 Returns true if ArrayFire is compiled with LAPACK support. More...