<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hello</p>
<p><br>
</p>
<p>I have a set of sparse matrices (A1, A2, ...) , and need to generate a larger matrix B with these as submatrices. <span style="font-size: 12pt;">I do not know the
</span><span style="font-size: 12pt;">precise </span><span style="font-size: 12pt;">sparse layouts of the </span><span style="font-size: 12pt;">A's (only that each row has one or two non-zero values), and extracting
<i>all</i> values to copy into B seems incredibly wasteful. How can I make use of the sparsity to solve this efficiently?</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p>Thanks,</p>
<p>Peder</p>
<p><span style="font-size: 12pt;"></span></p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p><br>
</p>
<p></p>
<table border="0" cellspacing="0" cellpadding="0" style="font-family:"Times New Roman"; padding:0px; width:400px">
<tbody>
<tr>
<td style="width:400px">
<table border="0" cellspacing="0" cellpadding="0" style="width:400px; font-family:Arial; font-size:11.5px; border-collapse:collapse">
<tbody>
<tr>
<td valign="top" style="width:50px; vertical-align:top">
<table cellspacing="0" cellpadding="0" style="width:50px; padding-top:4px">
<tbody>
<tr>
<td align="left" style="width:50px; vertical-align:top"><img width="36" height="53" style="user-select: none;" src="http://www.dtu.dk/-/media/DTU_Generelt/Andet/mail-signature-logo.png"></td>
</tr>
</tbody>
</table>
</td>
<td valign="top" style="width:350px; vertical-align:top">
<table border="0" cellspacing="0" cellpadding="0" style="width:350px; border-collapse:collapse">
<tbody>
<tr>
<td style="width:350px; font-size:16px; margin:0px; font-weight:bold; line-height:19.2px">
Peder Jørgensgaard Olesen</td>
</tr>
<tr>
<td style="width:350px; margin:0px; line-height:17px">PhD student<br>
Department of Civil and Mechanical Engineering</td>
</tr>
<tr>
<td style="width:350px; margin:0px; line-height:17px"> </td>
</tr>
<tr>
<td style="width:350px; line-height:17px"><a href="mailto:pjool@mek.dtu.dk" style="margin:0px; line-height:17px; color:black" id="LPNoLP">pjool@mek.dtu.dk</a></td>
</tr>
<tr>
<td style="width:350px; margin:0px; line-height:17px">Koppels Allé</td>
</tr>
<tr>
<td style="width:350px; margin:0px; line-height:17px">Building 403, room 105</td>
</tr>
<tr>
<td style="width:350px; margin:0px; line-height:17px">2800 Kgs. Lyngby</td>
</tr>
<tr>
<td style="width:350px; line-height:17px"><a href="https://www.dtu.dk/english" style="margin:0px; line-height:17px; color:black" id="LPNoLP">www.dtu.dk/english</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><span style="font-size:10pt; color:rgb(117,123,128)"></span></p>
</div>
</div>
</div>
</body>
</html>