3

How can i made a simple determinant in a af::array?

Tryed to use in af::array x: af::det(x) det(x) x.det()

and dont works.

Someone can help me?

 error: no matching function for call to ‘det(af::array&)’
  if(det(x) == 0){

candidate: template<class T> T af::det(const af::array&)
     template<typename T> T det(const array &in);
                        ^

Thanks.

1 Answers1

4

According to the documentation, the function is templated. You should try something like this instead:

std::cout << af::det<float>(x);
Kumar Aatish
  • 101
  • 2