lu_cp.m
来自「LU decomposition routines in matlab」· M 代码 · 共 35 行
M
35 行
function [A, ipivtr, ipivtc, iflag] = lu_pc( A );% % LU_CP computes the LU--decomposition with complete% pivoting of a matrix A % % Usage% [A, ipivt, iflag] = lu_pp( A )% % input:% A: the n by n matrix A% % output:% A: the LU-decomposition of A% % ipivtr: information on row exchanges% ipivtr(k) = i means that in step k % (entries k:n of) rows k and i were interchanged%% ipivtc: information on column exchanges% ipivtc(k) = i means that in step k columns% k and i were interchanged% % iflag: error flag% iflag = 0 Row reductions could be performed,% A is upper triangular% iflag = 1 dimension of A or of b is not correct% %% Your name% Jan 10, 2008%%%%% insert code%end of lu_cp.m
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?