📄 matrix_rank.pro
字号:
; $Id: matrix_rank.pro,v 1.2 2002/03/14 11:49:13 riccardi Exp $function matrix_rank, mon_error, 2; computes the rank of the matrix mif test_type(m, /FLOAT, /DOUBLE, DIM_SIZE=dims) then begin message, "Wrong input parameter type. The input must be a float or double."endifif dims[0] ne 2 then begin message, "Wrong input dimension. Input must be a 2-dim array"endifsvdc, m, w, u, vis_double = test_type(m, /FLOAT)dummy=check_math(/PRINT)ret = machar(DOUBLE=is_double)dummy=check_math()eps = double(ret.eps)w = abs(w)maxw = max(w)dummy = where(w gt maxw*eps, rank)return, rankend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -