{"id":22,"date":"2012-04-09T21:04:22","date_gmt":"2012-04-09T13:04:22","guid":{"rendered":"http:\/\/fishinbox.tk\/?p=22"},"modified":"2012-04-09T21:04:22","modified_gmt":"2012-04-09T13:04:22","slug":"calculate-the-determinant-of-a-square-matrix","status":"publish","type":"post","link":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/","title":{"rendered":"Calculate the Determinant of A Square Matrix"},"content":{"rendered":"<p>This is a code that I wrote weeks ago, mainly to calculate the determinant of a squae matrix.<\/p>\n<p>It&#8217;s written in c++. Enjoy it!<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\"> #include &lt;iostream&gt;\nusing namespace std;\ntemplate&lt;typename T&gt;\nclass Matrix{\n\tT **m;\n\tint n;\n\tvoid rot90(){\n\t\tT ** tmp=new T*&#x5B;n];\n\t\tfor(int i=0;i&lt;n;i++){\n\t\t\ttmp&#x5B;i]=new T&#x5B;n];\n\t\t\tfor(int j=0;j&lt;n;j++){\n\t\t\t\ttmp&#x5B;i]&#x5B;j]=m&#x5B;i]&#x5B;j];\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i&lt;n;i++){\n\t\t\tfor(int j=0;j&lt;n;j++){\n\t\t\t\tm&#x5B;i]&#x5B;j]=tmp&#x5B;n-1-j]&#x5B;i];\n\t\t\t}\n\t\t}\n\t}\n\tMatrix&lt;t&gt; M(int i,int j){\/\/get the matrix corresponds with specific minor Mij\n\t\tMatrix&lt;t&gt; TMP(n-1);\n\t\tfor(int a=0;a&lt;n-1;a++){\n\t\t\tfor(int b=0;b&lt;n-1;b++){\n\t\t\t\tint c=0,d=0;\n\t\t\t\tif(a&lt;i) c=a;\n\t\t\t\telse c=a+1;\n\t\t\t\tif(b&lt;j) d=b;\n\t\t\t\telse d=b+1;\n\t\t\t\tTMP.m&#x5B;a]&#x5B;b]=m&#x5B;c]&#x5B;d];\n\t\t\t}\n\t\t}\n\t\treturn TMP;\n\t}\n\tT C(int i,int j){\/\/get cofactor Cij\n\t\tif((i+j)%2==0) return M(i,j).Det();\n\t\telse return -1*M(i,j).Det();\n\t}\n\tT A(int i,int j){\n\t\treturn m&#x5B;i]&#x5B;j]*C(i,j);\n\t}\npublic :\n\n\tMatrix(int para){\n\t\tn=para;\n\t\tm=new T*&#x5B;n];\n\t\tfor(int i=0;i&lt;n;i++){\n\t\t\tm&#x5B;i]=new T&#x5B;n];\n\t\t\tfor(int j=0;j&lt;n;j++) m&#x5B;i]&#x5B;j]=0;\n\t\t}\n\t}\n\tMatrix(){\n\t\tint itmp=0;\n\t\tdo{\n\t\t\tcout&lt;&lt;&quot;Please input the square matrix's  n, and n has to be larger than 1&quot;&lt;&lt;endl;\n\t\t\tcin&gt;&gt;itmp;\n\t\t}\n\t\twhile(itmp&lt;2);\n\t\tn=itmp;\n\t\tm=new T*&#x5B;n];\n\t\tfor(int i=0;i&lt;n;i++){\n\t\t\tm&#x5B;i]=new T&#x5B;n];\n\t\t\tfor(int j=0;j&lt;n;j++) m&#x5B;i]&#x5B;j]=0;\n\t\t}\n\t}\n\tvoid Input(){\n\t\tcout&lt;&lt;&quot;Please initialize the matrix&quot;&lt;&lt;endl;\n\t\tfor(int i=0;i&lt;n;i++){\n\t\t\tfor(int j=0;j&lt;n;j++) cin&gt;&gt;m&#x5B;i]&#x5B;j];\n\t\t}\n\t\tcout&lt;&lt;&quot;Initialization done&quot;&lt;&lt;endl;\n\t}\n\tvoid Display(){\n\t\tfor(int i=0;i&lt;n;i++){\n\t\t\tfor(int j=0;j&lt;n;j++){\n\t\t\t\tcout&lt;&lt;m&#x5B;i]&#x5B;j];\n\t\t\t\tif(j!=n-1) cout&lt;&lt;&quot; &quot;;\n\t\t\t}\n\t\t\tcout&lt;&lt;endl;\n\t\t}\n\t}\n\tvoid Display(int w){\n\t\tfor(int i=0;i&lt;n;i++){\n\t\t\tfor(int j=0;j&lt;n;j++){\n\t\t\t\tcout&lt;&lt;setw(w)&lt;&lt;m&#x5B;i]&#x5B;j];\n\t\t\t}\n\t\t\tcout&lt;&lt;endl;\n\t\t}\n\t}\n\tvoid Display(int i,int j){\n\t\tcout&lt;&lt;m&#x5B;i]&#x5B;j]&lt;&lt;endl;\n\t}\n\tvoid Rotation(int times=1){\n\t\tfor(;times&gt;3;times-=4){}\n\t\tfor(;times&lt;0;times+=4){}\n\t\tif(times!=0){\n\t\t\tif(times==1) rot90();\n\t\t\telse{\n\t\t\t\trot90();\n\t\t\t\tRotation(times-1);\n\t\t\t}\n\t\t}\n\t}\n\tT Det(){\n\t\tif(n==2) return m&#x5B;0]&#x5B;0]*m&#x5B;1]&#x5B;1]-m&#x5B;0]&#x5B;1]*m&#x5B;1]&#x5B;0];\n\t\telse{\n\t\t\tT sum=0;\n\t\t\tfor(int i=0;i&lt;n;i++) sum+=A(0,i);\n\t\t\treturn sum;\n\t\t}\n\t}\n}; <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is a code that I wrote weeks ago, mainly to calculate the determinant of a squae matrix. It&#8217;s written in c++. Enjoy it! #include &lt;iostream&gt; using namespace std; template&lt;typename T&gt; class Matrix{ T **m; int n; void rot90(){ T ** tmp=new T*&#x5B;n]; for(int i=0;i&lt;n;i++){ tmp&#x5B;i]=new T&#x5B;n]; for(int j=0;j&lt;n;j++){ tmp&#x5B;i]&#x5B;j]=m&#x5B;i]&#x5B;j]; } } for(int i=0;i&lt;n;i++){ for(int &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Calculate the Determinant of A Square Matrix&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[25,40,63],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-programming","tag-c","tag-matrix","tag-programming"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"A simple C++ class to calculate the derterminant\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Hamilleton\"\/>\n\t<meta name=\"google-site-verification\" content=\"MU5z5UygVAc-wvTryHZh_Pyu9TTGhb65shw7AGmXpgE\" \/>\n\t<meta name=\"keywords\" content=\"derterminant,c++,programming,class,c++,matrix,programming\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ZigZagRoad | Thoughts in Life and Research on Work\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Calculate Derterminant | ZigZagRoad\" \/>\n\t\t<meta property=\"og:description\" content=\"A simple C++ class to calculate the derterminant\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/ziruizhuang.github.io\/assets\/img\/prof_pic.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/ziruizhuang.github.io\/assets\/img\/prof_pic.jpg\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2012-04-09T13:04:22+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2012-04-09T13:04:22+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Calculate Derterminant | ZigZagRoad\" \/>\n\t\t<meta name=\"twitter:description\" content=\"A simple C++ class to calculate the derterminant\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/ziruizhuang.github.io\/assets\/img\/prof_pic.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/calculate-the-determinant-of-a-square-matrix\\\/#article\",\"name\":\"Calculate Derterminant | ZigZagRoad\",\"headline\":\"Calculate the Determinant of A Square Matrix\",\"author\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/author\\\/hamilleton\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/#person\"},\"datePublished\":\"2012-04-09T21:04:22+08:00\",\"dateModified\":\"2012-04-09T21:04:22+08:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/calculate-the-determinant-of-a-square-matrix\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/calculate-the-determinant-of-a-square-matrix\\\/#webpage\"},\"articleSection\":\"Programming, C++, Matrix, Programming\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/calculate-the-determinant-of-a-square-matrix\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/#listItem\",\"name\":\"Study, Research and Work\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/#listItem\",\"position\":2,\"name\":\"Study, Research and Work\",\"item\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/computer-science\\\/#listItem\",\"name\":\"Computer Science\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/computer-science\\\/#listItem\",\"position\":3,\"name\":\"Computer Science\",\"item\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/computer-science\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/computer-science\\\/programming\\\/#listItem\",\"name\":\"Programming\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/#listItem\",\"name\":\"Study, Research and Work\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/computer-science\\\/programming\\\/#listItem\",\"position\":4,\"name\":\"Programming\",\"item\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/computer-science\\\/programming\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/calculate-the-determinant-of-a-square-matrix\\\/#listItem\",\"name\":\"Calculate the Determinant of A Square Matrix\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/computer-science\\\/#listItem\",\"name\":\"Computer Science\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/calculate-the-determinant-of-a-square-matrix\\\/#listItem\",\"position\":5,\"name\":\"Calculate the Determinant of A Square Matrix\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/computer-science\\\/programming\\\/#listItem\",\"name\":\"Programming\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/#person\",\"name\":\"Hamilleton\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/author\\\/hamilleton\\\/#author\",\"url\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/author\\\/hamilleton\\\/\",\"name\":\"Hamilleton\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/calculate-the-determinant-of-a-square-matrix\\\/#webpage\",\"url\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/calculate-the-determinant-of-a-square-matrix\\\/\",\"name\":\"Calculate Derterminant | ZigZagRoad\",\"description\":\"A simple C++ class to calculate the derterminant\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/calculate-the-determinant-of-a-square-matrix\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/author\\\/hamilleton\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/author\\\/hamilleton\\\/#author\"},\"datePublished\":\"2012-04-09T21:04:22+08:00\",\"dateModified\":\"2012-04-09T21:04:22+08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/#website\",\"url\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/\",\"name\":\"ZigZagRoad\",\"description\":\"Thoughts in Life and Research on Work\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Calculate Derterminant | ZigZagRoad","description":"A simple C++ class to calculate the derterminant","canonical_url":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/","robots":"max-image-preview:large","keywords":"derterminant,c++,programming,class,c++,matrix,programming","webmasterTools":{"google-site-verification":"MU5z5UygVAc-wvTryHZh_Pyu9TTGhb65shw7AGmXpgE","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/#article","name":"Calculate Derterminant | ZigZagRoad","headline":"Calculate the Determinant of A Square Matrix","author":{"@id":"https:\/\/zhuangzr.me\/wordpress\/author\/hamilleton\/#author"},"publisher":{"@id":"https:\/\/zhuangzr.me\/wordpress\/#person"},"datePublished":"2012-04-09T21:04:22+08:00","dateModified":"2012-04-09T21:04:22+08:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/#webpage"},"isPartOf":{"@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/#webpage"},"articleSection":"Programming, C++, Matrix, Programming"},{"@type":"BreadcrumbList","@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress#listItem","position":1,"name":"Home","item":"https:\/\/zhuangzr.me\/wordpress","nextItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/#listItem","name":"Study, Research and Work"}},{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/#listItem","position":2,"name":"Study, Research and Work","item":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/","nextItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/computer-science\/#listItem","name":"Computer Science"},"previousItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/computer-science\/#listItem","position":3,"name":"Computer Science","item":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/computer-science\/","nextItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/computer-science\/programming\/#listItem","name":"Programming"},"previousItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/#listItem","name":"Study, Research and Work"}},{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/computer-science\/programming\/#listItem","position":4,"name":"Programming","item":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/computer-science\/programming\/","nextItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/#listItem","name":"Calculate the Determinant of A Square Matrix"},"previousItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/computer-science\/#listItem","name":"Computer Science"}},{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/#listItem","position":5,"name":"Calculate the Determinant of A Square Matrix","previousItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/computer-science\/programming\/#listItem","name":"Programming"}}]},{"@type":"Person","@id":"https:\/\/zhuangzr.me\/wordpress\/#person","name":"Hamilleton"},{"@type":"Person","@id":"https:\/\/zhuangzr.me\/wordpress\/author\/hamilleton\/#author","url":"https:\/\/zhuangzr.me\/wordpress\/author\/hamilleton\/","name":"Hamilleton"},{"@type":"WebPage","@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/#webpage","url":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/","name":"Calculate Derterminant | ZigZagRoad","description":"A simple C++ class to calculate the derterminant","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/zhuangzr.me\/wordpress\/#website"},"breadcrumb":{"@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/#breadcrumblist"},"author":{"@id":"https:\/\/zhuangzr.me\/wordpress\/author\/hamilleton\/#author"},"creator":{"@id":"https:\/\/zhuangzr.me\/wordpress\/author\/hamilleton\/#author"},"datePublished":"2012-04-09T21:04:22+08:00","dateModified":"2012-04-09T21:04:22+08:00"},{"@type":"WebSite","@id":"https:\/\/zhuangzr.me\/wordpress\/#website","url":"https:\/\/zhuangzr.me\/wordpress\/","name":"ZigZagRoad","description":"Thoughts in Life and Research on Work","inLanguage":"en-US","publisher":{"@id":"https:\/\/zhuangzr.me\/wordpress\/#person"}}]},"og:locale":"en_US","og:site_name":"ZigZagRoad | Thoughts in Life and Research on Work","og:type":"article","og:title":"Calculate Derterminant | ZigZagRoad","og:description":"A simple C++ class to calculate the derterminant","og:url":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/","og:image":"https:\/\/ziruizhuang.github.io\/assets\/img\/prof_pic.jpg","og:image:secure_url":"https:\/\/ziruizhuang.github.io\/assets\/img\/prof_pic.jpg","article:published_time":"2012-04-09T13:04:22+00:00","article:modified_time":"2012-04-09T13:04:22+00:00","twitter:card":"summary","twitter:title":"Calculate Derterminant | ZigZagRoad","twitter:description":"A simple C++ class to calculate the derterminant","twitter:image":"https:\/\/ziruizhuang.github.io\/assets\/img\/prof_pic.jpg"},"aioseo_meta_data":{"post_id":"22","title":"Calculate Derterminant | #site_title","description":"A simple C++ class to calculate the derterminant","keywords":[{"label":"derterminant,c++,programming,class","value":"derterminant,c++,programming,class"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-24 07:00:03","updated":"2025-07-03 08:44:20","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/zhuangzr.me\/wordpress\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/\" title=\"Study, Research and Work\">Study, Research and Work<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/computer-science\/\" title=\"Computer Science\">Computer Science<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/computer-science\/programming\/\" title=\"Programming\">Programming<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCalculate the Determinant of A Square Matrix\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/zhuangzr.me\/wordpress"},{"label":"Study, Research and Work","link":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/"},{"label":"Computer Science","link":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/computer-science\/"},{"label":"Programming","link":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/computer-science\/programming\/"},{"label":"Calculate the Determinant of A Square Matrix","link":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/calculate-the-determinant-of-a-square-matrix\/"}],"_links":{"self":[{"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":0,"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}