<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Menlo;
        panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
p.p1, li.p1, div.p1
        {mso-style-name:p1;
        margin:0cm;
        background:white;
        font-size:9.0pt;
        font-family:Menlo;
        color:#5D6C79;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am assembling a MATIJ of size N, where a very large number of rows (and corresponding columns), are zeros. I would like to potentially eliminate them before the solve.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For instance say N=7</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="p1">0 0<span class="apple-converted-space">  </span>0<span class="apple-converted-space"> 
</span>0 0 0 0</p>
<p class="p1">0 1 -1<span class="apple-converted-space">  </span>0 0 0 0</p>
<p class="p1">0 -1 2<span class="apple-converted-space">  </span>0 0 0 -1</p>
<p class="p1">0 0<span class="apple-converted-space">  </span>0<span class="apple-converted-space"> 
</span>0 0 0 0</p>
<p class="p1">0 0<span class="apple-converted-space">  </span>0<span class="apple-converted-space"> 
</span>0 0 0 0</p>
<p class="p1">0 0<span class="apple-converted-space">  </span>0<span class="apple-converted-space"> 
</span>0 0 0 0</p>
<p class="p1">0 0<span class="apple-converted-space">  </span>-1 0 0 0 1</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I would like to reduce it to a 3x3</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">1 -1 0</p>
<p class="MsoNormal">-1 2 -1</p>
<p class="MsoNormal">0 -1 1</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I do know the size N.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Q1) How do I do it?</p>
<p class="MsoNormal">Q2) Is it better to eliminate them as it would save a lot of memory?
</p>
<p class="MsoNormal">Q3) At the moment, I don’t know which rows (and columns) have the zero entries but with some effort I probably can find them. Should I know which rows (and columns) I am eliminating?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Karthik.</p>
</div>
<p><span style="font-size: 6pt;">This email and any attachments are intended solely for the use of the named recipients. If you are not the intended recipient you must not use, disclose, copy or distribute this email or any of its attachments and should notify the sender immediately and delete this email from your system. UK Research and Innovation (UKRI) has taken every reasonable precaution to minimise risk of this email or any attachments containing viruses or malware but the recipient should carry out its own virus and malware checks before opening the attachments. UKRI does not accept any liability for any losses or damages which the recipient may sustain due to presence of any viruses. </span></p></body>
</html>