<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic I have noticed several odd in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022260#M19752</link>
    <description>&lt;P&gt;I have noticed several odd features of your matrix. For example, it has a trailing diagonal block, rows 433:n and columns 433:n, which is completely zero. This property could be exploited to speed up the solution.&lt;/P&gt;

&lt;P&gt;Next, your matrix is nearly singular -- Matlab gave me zero for the determinant, and the matrix is not full rank if you specify a tolerance of, say, 10&lt;SUP&gt;-5&lt;/SUP&gt;. I have observed Pardiso giving different results compared to those from Matlab and Mumps, but I don't feel comfortable that what I have seen is all true and not the result of some mistake in the code or the manipulation of the matrix data. So, I ask: Is it possible for you to produce a smaller matrix that exhibits similar problems? For example, if your FEA program could be rerun with a coarser mesh, and the matrix dumped out as before? I realize that this is more work for you, but it may become possible to narrow down a bug in the library routine, or to confirm that your problem itself is pathological.&lt;/P&gt;

&lt;P&gt;I suspect that your matrix is structurally symmetric, but I hesitate to make generalizations without looking at more matrices from your program. What do you think?&lt;/P&gt;

&lt;P&gt;These comments are all based on posts #1 to #12; I have not yet looked at #13.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2015 16:37:50 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2015-09-25T16:37:50Z</dc:date>
    <item>
      <title>CSR matrix handling and solution error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022247#M19739</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
	I built my &lt;STRONG&gt;own class for CSR3 matrices&lt;/STRONG&gt; for Mkl Pardiso and I have to know how Mkl knows the &lt;STRONG&gt;length of arrays&lt;/STRONG&gt; (values and columnIndex ):&lt;BR /&gt;
	- Is it done by &lt;STRONG&gt;rowIndex[number_of_rows]&lt;/STRONG&gt;?&lt;BR /&gt;
	- Is it done by some information &lt;STRONG&gt;provided by mkl_alloc&lt;/STRONG&gt;?&lt;/P&gt;

&lt;P&gt;I know it seems a very stupid question but it's a whole month that I'm working on this problem:&lt;BR /&gt;
	1st case&lt;BR /&gt;
	- I preallocate the matrix with an &lt;STRONG&gt;estimated&lt;/STRONG&gt; number of nonzeros (element that are not really initialized has a flag that say that are not used)&lt;BR /&gt;
	- I &lt;STRONG&gt;compress&lt;/STRONG&gt; it, deleting all unused/uninitialized elements&lt;BR /&gt;
	2nd case&lt;BR /&gt;
	- I preallocate the matrix*&lt;BR /&gt;
	- I read the matrix from an external file&lt;/P&gt;

&lt;P&gt;The two matrices at the end are ABSOLUTELY IDENTICAL. It changes the way they're allocated first.&lt;BR /&gt;
	The case one works very well, but after a random number of steps of the dynamic problem it has a huge residual (sometimes &amp;gt;e+14, yes it's a plus)! At that time I write the matrix on a file, I read it back to another matrix and then I give this matrix to Pardiso again and puff! All is perfect again! Residual e-15!&lt;/P&gt;

&lt;P&gt;Do you have any suggestion?&lt;/P&gt;

&lt;P&gt;Many thanks,&lt;BR /&gt;
	Dario&lt;/P&gt;

&lt;P&gt;*in the 2nd case it works also if I preallocate whatever number of nonzero and then I compress. It works well at anytime!&lt;BR /&gt;
	** comparing IPARM output I noticed that or iparm(63) one-indexed it changes everytime but in the step where I face the problem there's a -1 in the 1st case and 0 in the second case... I don't know if it is useful&lt;/P&gt;

&lt;P&gt;Here my settings: ONE-indexed&lt;/P&gt;

&lt;P&gt;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;

&lt;P&gt;/*IPARM easy settings*/&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(1) = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* No default values for solver */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(6) = 0;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Write solution on u */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(12) = 0;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Solve with transposed/conjugate transposed matrix [def: 0, solve simply A*x=b]*/&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(18) = -1;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Report number of nonzeros */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(19) = -1;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Report number of floating point operations */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(35) = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Zero based indexing */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(27) = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Matrix checker */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(28) = 0;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Double precision */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(36) = 0;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Schur complement matrix computation control [def:0, do not compute Schur] */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(56) = 0;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Diagonal and pivoting control [def:0, disabled] */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(60) = 0;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* In-Core (OC) / Out-Of-Core (OOC) switch [def:0, IC mode] */&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* IPARM fine settings */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(2) = 2;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Fill-in reducing ordering [def:2] */&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(4) = 0;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Preconditioned CGS/CG [def:0] - HIGHLY RECOMMENDED */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(5) = 0;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* User fill-in reducing permutation [def:0, default filling]*/&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(8) = 10;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Maximum number of iterative refinement steps */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(10) = 13;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Perturb the pivot elements with 1E-value [def:13 for unsymm/8 for symm, 1e-13 perturbation]*/&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(11) = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Scaling MPS [def: 1 for unsym/0 for sym, scaling enabled] */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(13) = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Maximum weighted matching algorithm [def: 1 for nonsymmetric matrices, enabled) */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(21) = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Pivoting for symmetric indefinite matrices */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(24) = 0;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Parallel factorization control [def:0, classic algorithm] */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(25) = 0;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Parallel/sequential solve control [def:0, parallel] */&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(31) = 0;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* ADV Partial solve and computing selected components of the solution vectors [def:0, disable]*/&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IPARM(34) = 0;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* ADV Optimal number of threads for conditional numerical reproducibility (CNR) mode [def:0, disable]*/&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:22:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022247#M19739</guid>
      <dc:creator>DarioMangoni</dc:creator>
      <dc:date>2015-09-10T15:22:10Z</dc:date>
    </item>
    <item>
      <title>If I can guess what you're</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022248#M19740</link>
      <description>&lt;P&gt;If I can guess what you're asking, the length (number of non-zeros) of each row is the difference between neighboring row or column indices.&amp;nbsp; There are plenty of examples both on Intel web pages e.g. &lt;A href="https://software.intel.com/en-us/node/471374" target="_blank"&gt;https://software.intel.com/en-us/node/471374&lt;/A&gt; (which may contain misleading typos) and non-Intel ones.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 16:10:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022248#M19740</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-09-10T16:10:10Z</dc:date>
    </item>
    <item>
      <title>No no no! I know how CSR3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022249#M19741</link>
      <description>&lt;P&gt;No no no! I know how CSR3 format works and how element are arranged. I know that the question is subtle, but the problem I'm having it's incredibly strange.&lt;BR /&gt;
	I'm asking if MKL in its internal algorithm has a particular way to read the matrix (maybe it relies also on the size of the arrays allocated?). I know it's strange, but I have two matrices that are &lt;STRONG&gt;exactly&lt;/STRONG&gt; the same but that give different &lt;STRONG&gt;results&lt;/STRONG&gt; (one gives huge residuals, the other works normally).&lt;/P&gt;

&lt;P&gt;I checked them many times, the only difference it's that the element in the second matrix are written copying each element of the three arrays directly. In the fist matrix elements are written (altough already allocated in memory) in a random sequence.&lt;/P&gt;

&lt;P&gt;But when I call the Pardiso solver and I give him the addresses of the arrays, the arrays are absolutely the same!&lt;/P&gt;

&lt;P&gt;I'm stuck in this problem since a month and I'm out of ideas.&lt;BR /&gt;
	I tried to resize the array to fit exactly the size of the matrix, I tried to preallocate a higher number of nonzeros space and lower and reallocate the matrices... nothing let the first matrix work.&lt;/P&gt;

&lt;P&gt;Any help would be really highly appreciated...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 16:26:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022249#M19741</guid>
      <dc:creator>DarioMangoni</dc:creator>
      <dc:date>2015-09-10T16:26:23Z</dc:date>
    </item>
    <item>
      <title>I don't think that it is</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022250#M19742</link>
      <description>&lt;P&gt;I don't think that it is useful to ask about internal implementation details of MKL and other proprietary library routines without having good reasons for wanting to know. Even if you were able to elicit a reply with that information, you could not rely upon that information since it is not part of the specification for the interface. When the library is revised for a future release, the information may no longer be valid.&lt;/P&gt;

&lt;P&gt;Among the arguments to Pardiso are these:&amp;nbsp;&lt;EM&gt;n, a, ia, ja.&lt;/EM&gt;&amp;nbsp;Given these, the routine can obtain n&lt;SUB&gt;nz&lt;/SUB&gt; = ia(n+1). It follows that MKL should only use ja(1:&lt;SPAN style="font-size: 12.195px; line-height: 12.195px;"&gt;n&lt;/SPAN&gt;&lt;SUB&gt;nz&lt;/SUB&gt;) and&amp;nbsp;&lt;SPAN style="font-size: 12.195px; line-height: 12.195px;"&gt;a(1:&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.195px; line-height: 12.195px;"&gt;n&lt;/SPAN&gt;&lt;SUB&gt;nz&lt;/SUB&gt;&lt;SPAN style="font-size: 12.195px; line-height: 12.195px;"&gt;). It is crucial that ia(n+1) should contain the correct value.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12.195px; line-height: 12.195px;"&gt;How the vectors/matrices are allocated and initialized is of no consequence to Pardiso. The arrays may be statically or dynamically allocated. If the latter, whether the allocation was done by the Fortran runtime, mkl_malloc, calloc or malloc should have no effect on the results returned by Pardiso. The arrays may be filled from data in a file, or with values obtained from a prior calculation. Pardiso does not take array arguments whose allocation it should be able to change; it neither needs to nor should it be able to apply intrinsics such as UBOUND to the array arguments. Pardiso does not take optional arguments or arguments based on keywords.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12.195px; line-height: 12.195px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN style="font-size: 12px; line-height: 12px;"&gt;The two matrices at the end are ABSOLUTELY IDENTICAL. It changes the way they're allocated first.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 12px;"&gt;I presume that you meant to say that the behavior of Pardiso and/or the resulting solution are changed by the way the arrays are allocated. This is not the way things should be, nor do I think that this happens, based on having used Pardiso regularly for a number of years. I have called MKL/Pardiso from Fortran source files that I compiled with other compilers than Intel Fortran, and those programs would have failed if Pardiso depended on detailed information regarding how arguments given to it had been allocated.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 12px;"&gt;If you want to resolve the bugs, you probably need to make up complete test codes that demonstrate what you claim. We have to establish that you are, indeed, calling Pardiso with matching array contents in the two cases. Until that is done, it makes little sense to try to find bugs based on the values supplied in IPARM.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 17:07:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022250#M19742</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-09-10T17:07:00Z</dc:date>
    </item>
    <item>
      <title>In the area of questions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022251#M19743</link>
      <description>&lt;P&gt;In the area of questions which you didn't really ask: if you are using a threaded MKL function for CSR, it likely divides the work among threads by scanning the sizes of the individual array sections and allocating a nearly equal total size to each thread (probably not by schedule dynamic).&amp;nbsp; This would help maintain locality on a NUMA such as multiple CPU Xeon.&amp;nbsp;&amp;nbsp; Regardless of internal implementation, if you depend on a more strict ordering of data storage than what is required by the basic algorithm (which might not necessarily match the public open source), you are doing something wrong.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2015 01:45:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022251#M19743</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-09-11T01:45:08Z</dc:date>
    </item>
    <item>
      <title>Hi again,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022252#M19744</link>
      <description>&lt;P&gt;Hi again,&lt;BR /&gt;
	In these days I had some time to inspect the code and make different runs. About that, I want to show you some interesting results.&lt;BR /&gt;
	I share with you two different matrixes in CSR3 format that are exactly the same. Except for a tiny difference... Which?&lt;/P&gt;

&lt;P&gt;I exported the matrix (i.e. the 3 arrays) using &lt;STRONG&gt;std::scientific &amp;lt;&amp;lt; std::setprecision(12)&lt;/STRONG&gt;&lt;BR /&gt;
	and then with&amp;nbsp;&lt;STRONG&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;std::scientific &amp;lt;&amp;lt; std::setprecision(24)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;But... what happens to the results?&lt;BR /&gt;
	With 24digits precision I get a norm-2 of the &lt;EM&gt;residual &lt;/EM&gt;of 3.95e&lt;STRONG&gt;+&lt;/STRONG&gt;07 (yes, it's a plus)&lt;BR /&gt;
	with 12digits precision it drops at 3.2e-15.&lt;/P&gt;

&lt;P&gt;As you notice, the &lt;STRONG&gt;lower &lt;/STRONG&gt;the precision the &lt;STRONG&gt;better &lt;/STRONG&gt;the results. You probably think that the matrix is ill-conditioned and such a difference in the precision of matrix coefficients matter, But the conditioning number of both the matrix is almost the same (around 3e+5) and other solvers (Mumps and Matlab) have never had problems finding the correct solution!&lt;/P&gt;

&lt;P&gt;If I made any mistake setting the solver please notify me! I used almost default paramers.&lt;BR /&gt;
	Is there nothing I can do to solve this problem?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 19:50:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022252#M19744</guid>
      <dc:creator>DarioMangoni</dc:creator>
      <dc:date>2015-09-24T19:50:32Z</dc:date>
    </item>
    <item>
      <title>Quote:Dario M. wrote:If I</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022253#M19745</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Dario M. wrote:&lt;BR /&gt;If I made any mistake setting the solver please notify me! I used almost default paramers.&amp;nbsp;Is there nothing I can do to solve this problem?&lt;/BLOCKQUOTE&gt;The zip file contains no code, so we know nothing about what settings you used, and what you mean by "almost default parameters".&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 20:42:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022253#M19745</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-09-24T20:42:29Z</dc:date>
    </item>
    <item>
      <title>The "almost" is really almost</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022254#M19746</link>
      <description>&lt;P&gt;The "almost" is really almost. I changed only IPARM(35) to set zero-indexed arrays.&lt;BR /&gt;
	I also tried changing some settings: you can find them in the very first comment of this post.&lt;/P&gt;

&lt;P&gt;There are two possibilities:&lt;BR /&gt;
	- my code is bugged. But I used Pardiso with many other problems and gives good results and also the same pardiso called with two slighty different matrices shouldn't give a so different result. However if you think that the problem is nested there I will try to rewrite some code for a plain Pardiso (since now the code it's written to work inside a bigger software).&lt;/P&gt;

&lt;P&gt;- I didn't set IPARM or something like that in the good way. In this case if you already know the solution it would be really easy...&lt;/P&gt;

&lt;P&gt;Let me know if I had to write some code or if you can run the matrix I provided on your machines without trouble simply importing the txt files into a C array.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 21:03:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022254#M19746</guid>
      <dc:creator>DarioMangoni</dc:creator>
      <dc:date>2015-09-24T21:03:09Z</dc:date>
    </item>
    <item>
      <title>There is an example code,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022255#M19747</link>
      <description>&lt;P&gt;There is an example code,&amp;nbsp;pardiso_unsym_c.c, in the MKL distribution, in the directory .../mkl/examples/solverc/source. You can modify it to read the matrix data from your data files and compute and print the residuals. If you see the same behavior (very different norm of residual vector with a12.txt versus a24.txt), attach your modified code and a description of how the results differ, and then there will be something tangible for the MKL group to work with.&lt;/P&gt;

&lt;P&gt;Pardiso calls are more complicated than calls to most BLAS and Lapack routines. In particular, given the need to hold a large matrix in CSC sparse matrix storage format, the IPARM array with numerous control parameters in it and the need to call Pardiso in a particular sequence, it is easy to see that there are more opportunities to make mistakes. However, the extra work and care needed to get all this right is well rewarded by the high performance of the Pardiso solver. MKL also provides the alternative DSS interface to Pardiso, which you may consider using as a less error-prone way of solving sparse equations.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 21:28:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022255#M19747</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-09-24T21:28:00Z</dc:date>
    </item>
    <item>
      <title>I never tried the DSS</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022256#M19748</link>
      <description>&lt;P&gt;I never tried the DSS interface but I will give it a look if you recommend it! Thank you for the hint&lt;/P&gt;

&lt;P&gt;In the zip you'll find a slightly modified &lt;EM&gt;pardiso_unsym_c.c&lt;/EM&gt;&amp;nbsp;(called Source.cpp) that loads the data.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	There are 3 &lt;STRONG&gt;#define&lt;/STRONG&gt;:&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;MY_DATA 1: loads my matrices; 0:use the original values of &lt;/SPAN&gt;&lt;EM style="font-size: 13.008px; line-height: 19.512px;"&gt;pardiso_unsym_c.c&lt;/EM&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;USE_ONE_INDEX&amp;nbsp;1: adapts my matrix to one-indexed matrices; 0:uses the original index and put IPARM(35)=1&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;USE_PRECISION24 1: loads the 24digits precision; 0: uses the 12digits precision (unuseful with MY_DATA=0)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;On my machine I'll get a very strange result:&lt;BR /&gt;
	using zero-indices they'll both give errors of e+60 (never happened before)&lt;BR /&gt;
	however using one-indexed arrays I will have the behaviour that I'm used to see: with 24 I'll get e+6; with 12 I'll get e-8.&lt;/P&gt;

&lt;P&gt;Thank you again for your efforts&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 23:54:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022256#M19748</guid>
      <dc:creator>DarioMangoni</dc:creator>
      <dc:date>2015-09-24T23:54:34Z</dc:date>
    </item>
    <item>
      <title>I think that you attached the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022257#M19749</link>
      <description>&lt;P&gt;I think that you attached the same zip file that you posted in #6 again. There is no C/C++ source file in the zip file of #10.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 01:29:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022257#M19749</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-09-25T01:29:26Z</dc:date>
    </item>
    <item>
      <title>Oh, really sorry. I uploaded</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022258#M19750</link>
      <description>&lt;P&gt;Oh, really sorry. I uploaded the file, but I didn't push NEXT so in "myFile" there was only the previous one.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 03:33:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022258#M19750</guid>
      <dc:creator>DarioMangoni</dc:creator>
      <dc:date>2015-09-25T03:33:04Z</dc:date>
    </item>
    <item>
      <title>Meanwhile I want to show you</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022259#M19751</link>
      <description>&lt;P&gt;Meanwhile I want to show you another interesting result.&lt;BR /&gt;
	- I took the simple &lt;EM&gt;pardiso_unsym_c.c&lt;/EM&gt;&lt;BR /&gt;
	- I modified &lt;EM&gt;ia&lt;/EM&gt; and &lt;EM&gt;ja&lt;/EM&gt; to be zero-indexed (i.e. I subtracted 1 both to &lt;EM&gt;ia&lt;/EM&gt; and &lt;EM&gt;ja&lt;/EM&gt;)&lt;BR /&gt;
	- I set &lt;EM&gt;iparm[34]&lt;/EM&gt; (for documentation &lt;EM&gt;iparm(35)&lt;/EM&gt;) to 1 that means zero-indexed arrays&lt;/P&gt;

&lt;P&gt;Now... what did I do so terrible that I have messed up everything? Now the relative residual looks like e+62 instead of e-16?&lt;BR /&gt;
	I think I'm missing something something, but I can't undestand what.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 16:11:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022259#M19751</guid>
      <dc:creator>DarioMangoni</dc:creator>
      <dc:date>2015-09-25T16:11:29Z</dc:date>
    </item>
    <item>
      <title>I have noticed several odd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022260#M19752</link>
      <description>&lt;P&gt;I have noticed several odd features of your matrix. For example, it has a trailing diagonal block, rows 433:n and columns 433:n, which is completely zero. This property could be exploited to speed up the solution.&lt;/P&gt;

&lt;P&gt;Next, your matrix is nearly singular -- Matlab gave me zero for the determinant, and the matrix is not full rank if you specify a tolerance of, say, 10&lt;SUP&gt;-5&lt;/SUP&gt;. I have observed Pardiso giving different results compared to those from Matlab and Mumps, but I don't feel comfortable that what I have seen is all true and not the result of some mistake in the code or the manipulation of the matrix data. So, I ask: Is it possible for you to produce a smaller matrix that exhibits similar problems? For example, if your FEA program could be rerun with a coarser mesh, and the matrix dumped out as before? I realize that this is more work for you, but it may become possible to narrow down a bug in the library routine, or to confirm that your problem itself is pathological.&lt;/P&gt;

&lt;P&gt;I suspect that your matrix is structurally symmetric, but I hesitate to make generalizations without looking at more matrices from your program. What do you think?&lt;/P&gt;

&lt;P&gt;These comments are all based on posts #1 to #12; I have not yet looked at #13.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 16:37:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022260#M19752</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-09-25T16:37:50Z</dc:date>
    </item>
    <item>
      <title>About exploiting the diagonal</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022261#M19753</link>
      <description>&lt;P&gt;About exploiting the diagonal zero block: what is the best way to handle the problem? Passing through Schur complement? Since I'll work with this kind of matrices it'll be &lt;STRONG&gt;very very helpful&lt;/STRONG&gt;!&lt;/P&gt;

&lt;P&gt;About the near-singularity: cutting with threshold at 1e-5=10^-5 is still not singular (for Matlab)! The conditioning number is exactly the same!&lt;BR /&gt;
	It does is singular when you cut at 1e-4, but honestly... for me 1e-4 is something! Moreover, if the problem was there, why with a matrix that has more or less the same conditioning number (and also less!!!), everything goes fine? A proof of that in the attachment. FYI, this new matrix comes from the same problem, just a few integration steps before.&lt;/P&gt;

&lt;P&gt;I would think about data manipulation errors me too if my program would have relied always on data exchange through txt-based files. But originally Pardiso was called in the same program that produces the matrix, so no file exchange happen! And the problem was the same (as with 24precision). Said that, I don't know in how many other ways I could have "corrupted" datas, also because I would have corrupted in such a way that, exporting the arrays to Matlab everything works fine... Maybe I corrupted or mishandled something in the big main program that originally gave the error (in which arrays are handled through a custom CSR class), but importing raw data into a pure C array with very low level instructions into a Intel-provided example eliminates almost every possible source of error that I can think of.&lt;/P&gt;

&lt;P&gt;It will be really hard for me to provide a smaller matrix with the same problems because the same kind of matrix, with the same size, that comes from the same problem, just few integration steps before... doesn't give this problems!!!&lt;/P&gt;

&lt;P&gt;I didn't look carefully at the structure of the matrix because at this time the solver should be has generic as possible so I'm not leveraging on symmetries.&lt;/P&gt;

&lt;P&gt;P.S. the new code has a #define called USE_WORKING_DATA 1:uses data from a matrix that works good (lower cond number, though) 0: uses data from the matrix that I already sent you in the previous post. In both cases you can select from 12 and 24 precision as before.&lt;/P&gt;

&lt;P&gt;P.S. If you tried to run my code are you experiencing the same problems, with strange residuals and so on?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 18:44:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022261#M19753</guid>
      <dc:creator>DarioMangoni</dc:creator>
      <dc:date>2015-09-25T18:44:00Z</dc:date>
    </item>
    <item>
      <title>[quote=Dario M.]P.S. If you</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022262#M19754</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Dario M. wrote:&lt;BR /&gt;P.S. If you tried to run my code are you experiencing the same problems, with strange residuals and so on?&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Yes, I see strange residuals when I obtain a solution using MKL Pardiso, MKL/DSS, Pardiso-5. What is puzzling is that some of the solution components agree quite precisely with Matlab results, yet others disagree. Here, for example, are the numbers from Matlab (xs) and MKL/Pardiso (x) for the matrix of #12:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;&amp;gt;&amp;gt; disp([xs(1:20) x(1:20)])
   -4.718431735326641e-001   -4.718431735326600e-001
   -5.023715842038469e-001   -5.023715842038500e-001
                         0                         0
                         0                         0
                         0                         0
   -3.320461241252870e+000   -3.320461241252900e+000
   -8.723652569275131e-001   -8.723652569275100e-001
   -2.317285637431159e+000   -2.317285637431200e+000
                         0                         0
                         0                         0
                         0                         0
    2.443606602800037e+000    2.443606602800000e+000
   -6.484925942871733e-001    6.947416422904000e+001  &amp;lt;&amp;lt;=====
   -8.167535398176279e-001    1.184012934578900e+002
                         0                         0
&lt;/PRE&gt;

&lt;P&gt;I have solved the equations with MUMPS 4.10.0 an 5.0.1, with excellent results. For example:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt; Solved dario    in        0.047 s
Norm of residual =  7.661D-15
Largest residual =  3.997D-15&lt;/PRE&gt;

&lt;P&gt;These numbers compare well with what I get from Matlab:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;&amp;gt;&amp;gt; r=As*xs-b; norm(r)

ans =

    5.115840582406517e-015
&lt;/PRE&gt;

&lt;P&gt;In contrast, Pardiso-5 gives&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt; r(    18) =  3.728774D-01
 r(   145) =  1.502216D+05
 r(   146) = -8.812303D+04
 r(   151) = -1.501766D+05
 r(   152) =  8.815920D+04
Norm of residual =  2.463D+05
&lt;/PRE&gt;

&lt;P&gt;I suspect a bug somewhere, but I have failed to find it. This is the kind of situation where the job would be easier with a smaller matrix.&lt;/P&gt;

&lt;P&gt;Do you have a description of the problem as it is before you discretize? For example, a verbal definition or a statement in terms of a PDE+initial and boundary conditions?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 23:02:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022262#M19754</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-09-25T23:02:00Z</dc:date>
    </item>
    <item>
      <title>Oh, at least is not only my</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022263#M19755</link>
      <description>&lt;P&gt;Oh, at least is not only my machine...&lt;/P&gt;

&lt;P&gt;I've been able to reply the same problem with a smaller matrix (270 rows instead of 540).&lt;BR /&gt;
	The simulation involves an arbitrary number of little chains made like this (very scientific notation):&lt;BR /&gt;
	o----------||||||||||--------------|||||||||||&lt;BR /&gt;
	o is a revolute joint; ------ is an finite element &lt;STRONG&gt;ANCF cable&lt;/STRONG&gt;, not a simple beam; ||||||||| is a rigid body with its own mass.&lt;BR /&gt;
	There are 2 ANCF cables and 2 rigid bodies for each chain, but every chain has different ANCF cable length so there are different spacings between the different rigid bodies. A gravitational force is applied so they swing back and forth.&lt;/P&gt;

&lt;P&gt;The problem arise when &lt;STRONG&gt;3 or more&lt;/STRONG&gt; of these chains are simulated together. No matter what is the length of the cables:&lt;BR /&gt;
	o--||||||||--------------------|||||||||| &amp;nbsp;or &amp;nbsp;o-----------|||||||||||-----------||||||||| give the same problem.&lt;/P&gt;

&lt;P&gt;To let you better understand I took a screenshot.&lt;BR /&gt;
	In the attachment I provided some new (smaller) matrices with different "chain" length but that give the same problem. It might be useful having different matrices to test.&lt;BR /&gt;
	&lt;BR /&gt;
	If you can suggest me how to effectively handle those matrices exploiting the zero diagonal&amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;block, I'd be really grateful!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&lt;span class="lia-inline-image-display-wrapper" image-alt="2015-09-26 02_48_32-Cables FEM (MKL)_0.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/7968i29BC11CB98BBBE53/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="2015-09-26 02_48_32-Cables FEM (MKL)_0.png" alt="2015-09-26 02_48_32-Cables FEM (MKL)_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2015 08:13:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022263#M19755</guid>
      <dc:creator>DarioMangoni</dc:creator>
      <dc:date>2015-09-26T08:13:36Z</dc:date>
    </item>
    <item>
      <title>Dario, here are some</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022264#M19756</link>
      <description>&lt;P&gt;Dario, here are some observations to help you. Your matrices have many zero entries, and these zero entries do two bad things. A sparse matrix should not contain any, unless required as a placeholder (e.g., a diagonal element of a symmetric or structurally symmetric matrix). I removed the zero entries, and put your data into the following format (files with .CSR suffix):&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;  Line-1: title                               
  Line-2: n,nnz,index base                    
  Lines 3 to n+2 : rowptr,rhs, i=1:n          
  Lines n+3 to n+2+nnz : col(1:nnz),val(1:nnz)
&lt;/PRE&gt;

&lt;P&gt;I found that the removal of the zero-value matrix elements greatly improved the results from Pardiso. The residual norm remains at or below 10&lt;SUP&gt;-7&lt;/SUP&gt;, and the solutions agree to six or more digits when the RHS values are switched from 12 to "24" digits. Note that double precision does not give you more than 16 digits of precision, even if you print out 24 digits.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The second issue is one that I am unable to address: a good fraction of the solution values are zero. Perhaps you can tell from your understanding of the physics which x&lt;SUB&gt;i &lt;/SUB&gt;values should come out to zero, even before performing the solution. If so, you can eliminate the columns corresponding to those x values, and discard a number of equations equal in number to the count of zero-valued solutions.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;For example, Beam35 has 270 unknowns and&amp;nbsp;3276 matrix entries. However, only 2497 of those entries are non-zero, and 105 of the 270 elements of the solution are zero.&lt;/P&gt;

&lt;P&gt;The .CSR files and files with the solution vectors are in the attached zip file.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 03:23:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022264#M19756</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-09-28T03:23:00Z</dc:date>
    </item>
    <item>
      <title>Thanks mecej4 for your help!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022265#M19757</link>
      <description>&lt;P&gt;Thanks mecej4 for your help!&amp;nbsp;Now the simulation runs fine!&lt;/P&gt;

&lt;P&gt;I will give an in-depth look at the problem to exploit some other features of these matrices.&lt;/P&gt;

&lt;P&gt;Meanwhile can you suggest me a smart way to handle saddle-point problems? In the cookbook I can't find any recipe that could fit my case.&lt;/P&gt;

&lt;P&gt;Thank you again for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:19:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022265#M19757</guid>
      <dc:creator>DarioMangoni</dc:creator>
      <dc:date>2015-09-28T14:19:32Z</dc:date>
    </item>
    <item>
      <title>I am glad that the work</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022266#M19758</link>
      <description>&lt;P&gt;I am glad that the work-around (removing matrix elements that are zero) helped, but it is troubling that Pardiso (and not one of the four other solvers that I tried) seems to have a problem with your matrices, generating unexpectedly huge residuals. The underlying issue needs to be investigated and fixed, but it may be difficult to convince the author (Dr. Schenk) that there is a problem, without being able to provide a small test matrix with that property. Please keep this in mind, and if you find yourself with a small matrix with similar problems in the future, please report it.&lt;/P&gt;

&lt;P&gt;I should like to know: do you know which x-values may turn out to be zero before solving the simultaneous equations?&lt;/P&gt;

&lt;P&gt;I do not know what you mean by "saddle-point problems". Please elaborate.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:47:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSR-matrix-handling-and-solution-error/m-p/1022266#M19758</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-09-28T14:47:00Z</dc:date>
    </item>
  </channel>
</rss>

