<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div>Yes, we should allow users to provide their own matrix array. </div>
<div dir="ltr">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
We use MatDensePlaceArray() to plug an array into matrix C before MatMatMult(). If we cannot do this, we will have to copy from the internal array of the result C to our array.<br>
<br>
Would the following sequence work?<br>
MatMatMultSymbolic()<br>
MatDensePlaceArray()<br>
MatMatMultNumeric()<br>
</blockquote>
<div>This seems a reasonable API, but it is not obvious to users when and where MatDensePlaceArray() should be called.</div>
<div>Currently, most users call MatMatMult(A,B, reuse,&C) instead of MatMatMultSymbolic/Numeric. </div>
<div><br>
</div>
<div>We plan to add</div>
<div>MatMatGetProduct(A,B,&C);</div>
<div>Then,</div>
<div>MatDensePlaceArray(C,array);<br>
</div>
<div><br>
</div>
<div>Hong</div>
</div>
</div>
</div>
</body>
</html>