⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gee_its_simple_check.m

📁 The "GEE! It s Simple" package illustrates Gaussian elimination with partial pivoting, which produce
💻 M
字号:
function gee_its_simple_check (A, name, b)%GEE_ITS_SIMPLE_CHECK private function to check input arguments% Ensures the matrix A is square, and that the right-hand-side b has the same% number of rows as A (if present).  All matrices must be 2D, as well.%% Example:%   gee_its_simple_check (A, 'A', b)%% See also: gee_its_simple% Copyright 2007, Timothy A. Davis.% http://www.cise.ufl.edu/research/sparse[m n] = size (A) ;if (m ~= n)    error ('%s must be square', name) ;endif (ndims (A) ~= 2)    error ('%s must be a 2D matrix', name) ;endif (nargin > 2)    if (m ~= size (b,1))        error ('%s and b must have the same number of rows', name) ;    end    if (ndims (b) ~= 2)        error ('b must be a 2D matrix') ;    endend

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -