{"id":383,"date":"2017-09-14T12:04:21","date_gmt":"2017-09-14T15:04:21","guid":{"rendered":"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=383"},"modified":"2017-09-14T12:04:21","modified_gmt":"2017-09-14T15:04:21","slug":"findpiv-m","status":"publish","type":"page","link":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/findpiv-m\/","title":{"rendered":"findpiv.m"},"content":{"rendered":"<pre>function [k, p] = findpiv(A, k, p, tol)\r\n\r\n% findpiv  Used by plu to find a pivot for Gaussian elimination.\r\n%\r\n% [r, p] = findpiv(A(k:m, p:n), k, p, tol) finds the first element in\r\n% the specified submatrix which is larger than tol in absolute value.\r\n% It returns indices r and p so that A(r, p) is the pivot.\r\n\r\n[m,  n] = size(A);\r\nr = find(abs(A(:)) &gt; tol);\r\nif isempty(r), return, end\r\n%\r\nr = r(1);\r\nj = fix((r-1)\/m)+1;\r\np = p+j-1;\r\nk = k+r-(j-1)*m-1;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>function [k, p] = findpiv(A, k, p, tol) % findpiv Used by plu to find a pivot for Gaussian elimination. % % [r, p] = findpiv(A(k:m, p:n), k, p, tol) finds the first element in % the specified submatrix which is larger than tol in absolute value. % It returns indices r and p so [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[],"tags":[],"class_list":["post-383","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/comments?post=383"}],"version-history":[{"count":1,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/383\/revisions"}],"predecessor-version":[{"id":384,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/383\/revisions\/384"}],"wp:attachment":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/media?parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/categories?post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/tags?post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}