{"id":424,"date":"2017-09-14T12:16:44","date_gmt":"2017-09-14T15:16:44","guid":{"rendered":"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=424"},"modified":"2017-09-14T12:16:44","modified_gmt":"2017-09-14T15:16:44","slug":"signperm-m","status":"publish","type":"page","link":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/signperm-m\/","title":{"rendered":"signperm.m"},"content":{"rendered":"<pre>function [sign, PERM] = signperm(p)\r\n\r\n% signperm  Determinant of the permutation matrix with rows ordered by p.\r\n%\r\n% sign = signperm(p) returns the sign of the \r\n% permutation associated with the vector p.\r\n%\r\n% [sign, PERM] also returns the permutation matrix PERM.\r\n%\r\n% Example: Let p = [2 3 1].\r\n% Then sign = 1 and PERM = [0 1 0; 0 0 1; 1 0 0] .\r\n% \r\n\r\nn = length(p);\r\nI = eye(n);\r\nPERM = I(p, :);\r\nsign = det(PERM);<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>function [sign, PERM] = signperm(p) % signperm Determinant of the permutation matrix with rows ordered by p. % % sign = signperm(p) returns the sign of the % permutation associated with the vector p. % % [sign, PERM] also returns the permutation matrix PERM. % % Example: Let p = [2 3 1]. % Then [&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-424","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/424","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=424"}],"version-history":[{"count":1,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/424\/revisions"}],"predecessor-version":[{"id":425,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/424\/revisions\/425"}],"wp:attachment":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/media?parent=424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/categories?post=424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/tags?post=424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}