![]() |
Prev | Next |
# include <cppad/speed/det_33.hpp>
ok = det_33(
x,
d)
det_33
is defined in the CppAD
namespace by including
the file cppad/speed/det_33.hpp
(relative to the CppAD distribution directory).
It is only intended for example and testing purposes,
so it is not automatically included by
cppad.hpp
.
const
Vector &
x
.
It contains the elements of the matrix
X
in row major order; i.e.,
\[
X_{i,j} = x [ i * 3 + j ]
\]
const
Vector &
d
.
It is tested to see if
d[0]
it is equal to
\det ( X )
.
y[
i]
where i has type size_t
with value less than 9.
This must return a double
value corresponding to the i-th
element of the vector y.
This is the only requirement of the type Vector.
(Note that only the first element of the vector d is used.)
bool
ok
It is true, if the determinant
d[0]
passes the test and false otherwise.