On 8/21/06, <b class="gmail_sendername">Marek Wojciechowski</b> <<a href="mailto:mwojc@p.lodz.pl">mwojc@p.lodz.pl</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>> 1) It would have to be for a subclass like MatSeqAIJ<br>><br>> 2) It is setPreallocation()<br>><br>> Thanks,<br>><br>> Matt<br>><br><br>Honestly, I can find neither subclass MatSeqAIJ nor the method
<br>setPreallocation(). I create matrix as follows:<br><br>import PETSc.Mat<br>K = PETSc.Mat.Mat() ## as far as i know this is the only way to create<br>matrix in python<br>K.setSizes(size, size, Size, Size)<br>K.setFromOptions
()<br>K.setType("seqaij") ## i choose matrix type here, I don't know another<br>way...<br><br>Where is the moment to preallocate?</blockquote><div><br>
It may be that they never wrapped the preallocation methods. It seems strange, but<br>
possible. I guess I would mail Lisandro and see.<br>
<br>
Matt<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">--<br>Marek Wojciechowski<br>
</blockquote></div>-- <br>"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec Guiness