#include <cstdio>
#include <cstdlib>
int main(int argc, char *argv[])
{
try {
int device = argc > 1 ? atoi(argv[1]) : 0;
int n = 5;
printf("Running Cholesky InPlace\n");
printf("Running Cholesky Out of place\n");
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 array matmulNT(const array &lhs, const array &rhs)
Matrix multiply of two arrays.
AFAPI array identity(const dim4 &dims, const dtype ty=f32)
AFAPI array randu(const dim4 &dims, const dtype ty=f32)
AFAPI void setDevice(const int device)
Sets the current device.
AFAPI int cholesky(array &out, const array &in, const bool is_upper=true)
C++ Interface for cholesky decomposition.
array copy() const
Perform deep copy of the array.
Definition: algorithm.h:15
#define af_print(...)
Definition: util.h:141