<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word;line-break:after-white-space"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Sounds good. The fact that it isn’t checking for size is helpful for my use case as well. I just wanted to make sure it wasn’t a bug.</div> <br> <div id="bloop_sign_1523905013601728000" class="bloop_sign">—<div>Alp Dener</div></div> <br><p class="airmail_on">On April 16, 2018 at 1:56:30 PM, Smith, Barry F. (<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Normally they need to be the same, but not always. For KSPLSQR the A matrix may be rectangular but the B matrix is A^TA which is square. This special case is why we don't do error checking.
<br>
<br> Barry
<br>
<br>
<br>> On Apr 16, 2018, at 1:04 PM, Alp Dener <<a href="mailto:alp.dener@gmail.com">alp.dener@gmail.com</a>> wrote:
<br>>
<br>> Hi Barry,
<br>>
<br>> While I was working on some active-set related stuff in TAO, I discovered that I can call KSPSetOperators() with differently sized Mat and PC objects without getting any errors or warnings about the size mismatch. Note that my Mat object is explicit, but the PC object is a MATSHELL. Is this intended behavior, or is it a bug?
<br>>
<br>> —
<br>> Alp Dener
<br>
<br></div></div></span></blockquote></body></html>