#include <cstdio>
#include <cstdlib>
int main(int argc, char *argv[])
{
try {
int device = argc > 1 ? atoi(argv[1]) : 0;
int n = 5;
array in = matmulNT(t, t) + identity(n, n) * n;
printf("Running Cholesky InPlace\n");
printf("Running Cholesky Out of place\n");
cholesky(out_upper, in, true);
cholesky(out_lower, in, false);
fprintf(stderr,
"%s\n", e.
what());
throw;
}
return 0;
}
A multi dimensional data container.
Definition array.h:27
Definition exception.h:20
virtual const char * what() const
Definition exception.h:34
AFAPI void setDevice(const int device)
Sets the current device.
array copy() const
Perform deep copy of the array.
Definition algorithm.h:15
#define af_print(...)
Definition util.h:141