determinant_matrixDeterminantMatrixDeterminantMatrixdeterminant_matrixT_determinant_matrix
説明
determinant_matrixDeterminantMatrixDeterminantMatrixdeterminant_matrixT_determinant_matrix — 行列式を計算する。
書式
determinant_matrix( matrix MatrixID, string MatrixType, out real Value )void DeterminantMatrix( const HTuple& MatrixID, const HTuple& MatrixType, HTuple* Value )static void HOperatorSet.DeterminantMatrix( HTuple matrixID, HTuple matrixType, out HTuple value )def determinant_matrix( matrix_id: HHandle, matrix_type: str ) -> float
Herror T_determinant_matrix( const Htuple MatrixID, const Htuple MatrixType, Htuple* Value )
double HMatrix::DeterminantMatrix( const HString& MatrixType ) const
double HMatrix::DeterminantMatrix( const char* MatrixType ) const
double HMatrix::DeterminantMatrix( const wchar_t* MatrixType ) const (Windows only)
double HMatrix.DeterminantMatrix( string matrixType )
説明
オペレーター determinant_matrixDeterminantMatrix は行列ハンドル
MatrixIDmatrixIDmatrix_id で提供される入力行列 Matrix の行列式を
計算します。入力行列 Matrix の種類は、パラメーター
MatrixTypematrixTypematrix_type を使用して選択できます。次の値をサポートしてい
ます。一般:'general'"general"、対称:'symmetric'"symmetric"、三重対
角:'tridiagonal'"tridiagonal"、対称正値:'positive_definite'"positive_definite"
、上三角:'upper_triangular'"upper_triangular"、置換上三角:
'permuted_upper_triangular'"permuted_upper_triangular"、下三角:
'lower_triangular'"lower_triangular"、置換下三角行列:
'permuted_lower_triangular'"permuted_lower_triangular"。結果の計算式は以下の通りで
す。
\[\begin{eqnarray*}
\textrm{Value} \quad = \quad \det\,\texttt{Matrix}.
\end{eqnarray*}\]
例:
\[\begin{eqnarray*}
\texttt{Matrix} =
\left[ \begin{array}{rrr}
3.0 & 1.0 & 2.0 \\
-5.0 & 7.0 & 2.0 \\
-9.0 & -4.0 & 1.0
\end{array} \right]
\qquad \to \qquad
\textrm{Value} = -134.0
\end{eqnarray*}\]
注意
MatrixTypematrixTypematrix_type = 'symmetric'"symmetric"、
'positive_definite'"positive_definite"、または 'upper_triangular'"upper_triangular"
に対して、入力行列 Matrix の上三角部分に行列の関連情報を
含める必要があります。行列の下三角部分は参照されません。
MatrixTypematrixTypematrix_type = 'lower_triangular'"lower_triangular" に対して、入力行
列 Matrix の下三角部分に行列の関連情報を含める必要があり
ます。行列の上三角部分は参照されません。MatrixTypematrixTypematrix_type =
'tridiagonal'"tridiagonal" の場合、入力行列 Matrix の主対
角、上対角と下対角のみが使用されます。行列のその他の部分は参照され
ません。入力行列 Matrix の参照部分が指定された種類ではな
い場合、例外処理が発生します。
実行情報
実行情報
パラメーター
MatrixIDmatrixIDmatrix_id (input_control) matrix → (handle)HTuple (HHandle)HMatrix, HTuple (IntPtr)HHandleHtuple (handle)
入力行列の行列ハンドル
MatrixTypematrixTypematrix_type (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
入力行列の種類
初期値: 'general'"general"
値のリスト: 'general', 'lower_triangular', 'permuted_lower_triangular', 'permuted_upper_triangular', 'positive_definite', 'symmetric', 'tridiagonal', 'upper_triangular'"general", "lower_triangular", "permuted_lower_triangular", "permuted_upper_triangular", "positive_definite", "symmetric", "tridiagonal", "upper_triangular"
Valuevaluevalue (output_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)
入力行列式
結果
パラメーターが有効ならば、オペレーター determinant_matrixDeterminantMatrix
は値 2 (H_MSG_TRUE) を返します。必要に応じて、例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
create_matrixCreateMatrix
参考文献
David Poole: “Linear Algebra: A Modern Introduction”; Thomson;
Belmont; 2006.
Gene H. Golub, Charles F. van Loan: “Matrix Computations”; The
Johns Hopkins University Press; Baltimore and London; 1996.
モジュール
Foundation