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 Answer 1

4

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

std::cout << af::det<float>(x);
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.