det.m
来自「这是支持在MATLAB中进行四元数(哈密顿数)的工具箱」· M 代码 · 共 26 行
M
26 行
function n = det(X, d)% DET Determinant.% (Quaternion overloading of standard Matlab function, with differences.)%% The second parameter may be:%% 'Moore' The determinant is the product of the eigenvalues of X.% 'Dieudonn閹' or% 'Dieudonne' The determinant is the product of the singular values of X.% 'Study' The determinant is the determinant of the adjoint of X. If X% is a real quaternion matrix, the complex adjoint is used. If% X is a complexified quaternion matrix, the real adjoint is% used.%% The Moore determinant is the only one which can be negative or complex.% but it cannot be calculated for a non-Hermitian matrix since there is% currently no way to calculate the eigenvalues of a non-Hermitian matrix.% The Study determinant is the square of the Dieudonn閹 determinant and is% much faster to calculate, but it may not be accurately real, whereas the% Dieudonn庨 determinant is real by definition.%% For the moment, there is no default value for the second parameter. This% may be changed if a way is found to calculate the Moore determinant for% non-Hermitian matrices (Moore will be the default).% Copyright
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?