# include <cppad/speed/det_by_minor.hpp>
det_by_minor<Scalar> det(n)
d = det(a)
det_by_minoris defined in the
CppADnamespace by including the file
cppad/speed/det_by_minor.hpp(relative to the CppAD distribution directory).
constructs the objectconstructs the object
det_by_minor<Scalar> det(n)
detwhich can be used for evaluating the determinant of
nby
nmatrices using expansion by minors.
Scalarmust satisfy the same conditions as in the function det_of_minor .
nhas prototype
size_t n
returns the determinant of the matrixreturns the determinant of the matrix
d = det(a)
Ausing expansion by minors.
ahas prototype
It must be aIt must be a
const Vector &a
Vectorwith length @(@ n * n @)@ and with elements of type
Scalar. The elements of the @(@ n \times n @)@ matrix @(@ A @)@ are defined, for @(@ i = 0 , \ldots , n-1 @)@ and @(@ j = 0 , \ldots , n-1 @)@, by @[@ A_{i,j} = a[ i * m + j] @]@
dhas prototype
It is equal to the determinant of @(@ A @)@.It is equal to the determinant of @(@ A @)@.
Scalar d
yis a
Vectorobject, it must support the syntax
wherewhere
y[i]
ihas type
size_twith value less than @(@ n * n @)@. This must return a
Scalarvalue corresponding to the
i-th element of the vector
y. This is the only requirement of the type
Vector.
det_by_minor.hpp. It returns true if it succeeds and false otherwise.