\(\newcommand{\W}[1]{ \; #1 \; }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} }\) \(\newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} }\) \(\newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} }\) \(\newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }\)
det_by_minor¶
Determinant Using Expansion by Minors¶
Inclusion¶
The template class det_by_minor
is defined in the CppAD
namespace by including
the file cppad/speed/det_by_minor.hpp
(relative to the CppAD distribution directory).
Constructor¶
The syntax
det_by_minor<
Scalar > det ( n )
constructs the object det which can be used for evaluating the determinant of n by n matrices using expansion by minors.
Scalar¶
The type Scalar must satisfy the same conditions as in the function det_of_minor .
det¶
The syntax
d = det ( a )
returns the determinant of the matrix A using expansion by minors.
Vector¶
If y is a Vector object, it must support the syntax
y [ i ]
where i has type size_t
with value less than \(n * n\).
This must return a Scalar value corresponding to the i-th
element of the vector y .
This is the only requirement of the type Vector .
Example¶
The file
det_by_minor.cpp
contains an example and test of det_by_minor.hpp
.