<div dir="ltr">Dear all,<div>I want to calculate determinant of a 41x41 real (float) matrix. I used determinant() function <div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/determinant.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/determinant.shtml</a></div><div><br></div><div>However it is very slow.</div><div><br></div><div>I try to run the sample in the above page, it's quick. Even if I replace integer values by float values (i.e replace 1 by 1.0, 0 by 0.0 and so on)</div><div>I try to create a 4x4 real matrix, give all members a value of 1.0</div><div>It seems that the determinant() function runs forever and does not return any value</div><div><br></div><div>In the following illustration, a is sample matrix after replacing integer by float values. It takes NCL few seconds to return the value d = 30</div><div><br></div><div>x is new 4x4 matrix created by my new() function, it never gives me any result.</div><div><br></div><div>
<i><span></span>
</i><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>Variable: a</i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>Type: float</i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>Total Size: 64 bytes</i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i><span class="gmail-Apple-converted-space"> </span>16 values</i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>Number of Dimensions: 2</i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>[4] x [4]</i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>Coordinates:<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>(0)<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>d = 30</i></span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:13px"><i><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></i></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>Variable: x</i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>Type: float</i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>Total Size: 64 bytes</i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i><span class="gmail-Apple-converted-space"> </span>16 values</i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>Number of Dimensions: 2</i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>[4] x [4]</i></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><i>Coordinates:<span class="gmail-Apple-converted-space"> </span></i></span></p>
<br></div><div><br></div><div><br></div><div>Any suggestion or solution for this?</div><div><br></div><div>Regards,</div><div><br></div><div><br></div><div>p/s: I am using NCL v6.3.0 <div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Lam Hoang, PhD<br>Chief of Climate Prediction Division,</div><div>Viet Nam National Center of Hydro-Meteorology Forecasting<br>National Hydro-Meteorological Services of Vietnam</div><div>8 Phao Dai Lang street, Lang Thuong, Dong Da, Ha Noi, Vietnam<br><span style="font-size:12.8px">Mob: +84 9 682 34 682 </span><br style="font-size:12.8px"><br></div><div>Associate Researcher,<br>School of Earth, Atmosphere and Environment <br>Monash University, VIC 3800<br>Email: <a href="mailto:lam.hoang@monash.edu" target="_blank">lam.hoang@monash.edu</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div>