topic Does your linear equation in IntelĀ® oneAPI Math Kernel Library
https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dnscsr-deprecated-alternatives/m-p/1183990#M29475
<P>I see. Your matrix sizes do not fit the description that I had in mind for "sparse matrix".</P><P>Does your linear equation solver have the ability to exploit the sparseness of matrix B? Do all columns of B have the same rows in which the entries are zero?</P>Mon, 02 Mar 2020 14:25:00 GMTmecej42020-03-02T14:25:00Zmkl_?dnscsr deprecated, alternatives?
https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dnscsr-deprecated-alternatives/m-p/1183987#M29472
<P>Since "mkl_?dnscsr" (dense to sparse matrix conversion and vice versa) is deprecated, what should we use instead?</P><P>For sparse to dense conversion I could simply use "mkl_sparse_?_spmmd" (product of two sparse matrices, store result as dense matrix), but I couldn't find anything for dense to sparse conversion.</P><P>Also, if you happen to know why this method was deprecated, it would be good to know as well. Based on that, I could make my decision to use it anyway.</P><P>Regards, Robert</P>Wed, 12 Feb 2020 18:23:57 GMThttps://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dnscsr-deprecated-alternatives/m-p/1183987#M29472Robert_E_2020-02-12T18:23:57ZStoring a sparse matrix in
https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dnscsr-deprecated-alternatives/m-p/1183988#M29473
<P>Storing a sparse matrix in dense format is wasteful of both memory and CPU. Often, it may be impossible to store the dense matrix, mostly full of zero-valued elements.</P><P>If it is possible to process the matrix entries in (row, column) order, as each matrix element (or element contribution) is computed, we know i, j and a<SUB>i,j</SUB>. We can immediately update the row-index, column ID and value 1-D arrays, without using the dense representation at all. In other cases, a little bit of sorting and merging may be needed to form the CSR representation.</P>Mon, 02 Mar 2020 13:29:15 GMThttps://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dnscsr-deprecated-alternatives/m-p/1183988#M29473mecej42020-03-02T13:29:15ZHi,
https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dnscsr-deprecated-alternatives/m-p/1183989#M29474
<P>Hi,</P><P>thanks for the reply!</P><P>I think sometimes storing a sparse matrix as dense is justified. In my case, I have a small sparse square matrix A and I want to solve a linear system with multiple sparse right hand sides B, s.t. AX = B, where A is size (k x k), B is size (k x n) and k << n.</P><P>Now, A can either be sparse or dense, because conversion is cheap, whatever the scenario requires. But in order to make use of the fast BLAS solvers, I have to store B as a dense matrix first.<BR />Also, I haven't found a solver that can deal with multiple sparse right hand sides. Maybe someone has an idea what to do best in this case. Creating my own custom solver is most definitely not a good idea.<BR /><BR />regards, Robert</P>Mon, 02 Mar 2020 13:43:00 GMThttps://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dnscsr-deprecated-alternatives/m-p/1183989#M29474Robert_E_2020-03-02T13:43:00ZDoes your linear equation
https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dnscsr-deprecated-alternatives/m-p/1183990#M29475
<P>I see. Your matrix sizes do not fit the description that I had in mind for "sparse matrix".</P><P>Does your linear equation solver have the ability to exploit the sparseness of matrix B? Do all columns of B have the same rows in which the entries are zero?</P>Mon, 02 Mar 2020 14:25:00 GMThttps://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dnscsr-deprecated-alternatives/m-p/1183990#M29475mecej42020-03-02T14:25:00Z