#include <cstdio>
#include <cstdlib>
int main(int argc, char* argv[]) {
try {
int device = argc > 1 ? atoi(argv[1]) : 0;
printf("Running QR InPlace\n");
printf("Running QR with Q and R 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.
void setDevice(const int device)
Sets the current device.
AFAPI void qrInPlace(array &tau, array &in)
C++ Interface to perform QR decomposition.
AFAPI void qr(array &out, array &tau, const array &in)
C++ Interface to perform QR 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.