#include <cstdio>
#include <cstdlib>
 
 
int main(int argc, char* argv[]) {
    try {
        
        int device = argc > 1 ? atoi(argv[1]) : 0;
 
 
 
        printf("Running LU InPlace\n");
 
        printf("Running LU with Upper Lower Factorization\n");
 
        fprintf(stderr, 
"%s\n", e.
what());
        throw;
    }
 
    return 0;
}
A multi dimensional data container.
array copy() const
Perform deep copy of the array.
An ArrayFire exception class.
virtual const char * what() const
Returns an error message for the exception in a string format.
array lower(const array &in, bool is_unit_diag=false)
C++ Interface to return the lower triangle array.
array upper(const array &in, bool is_unit_diag=false)
C++ Interface to return the upper triangle array.
void setDevice(const int device)
Sets the current device.
AFAPI void luInPlace(array &pivot, array &in, const bool is_lapack_piv=true)
C++ Interface to perform in-place LU decomposition.
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.
array randu(const dim4 &dims, const dtype ty, randomEngine &r)
C++ Interface to create an array of random numbers uniformly distributed.