matrix_rank.pro

来自「IDL语言编写的用于天文自适应光学仿真的软件CAOS V6.0的第一部分。」· PRO 代码 · 共 36 行

PRO
36
字号
; $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 + =
减小字号Ctrl + -
显示快捷键?