Hi Caner,<div><br></div><div>Is the templating more than aesthetic? It would seem to me from, for instance, </div><div><a href="https://github.com/canercandan/petsc-cxx/blob/master/src/petsc_cxx/Vector.h">https://github.com/canercandan/petsc-cxx/blob/master/src/petsc_cxx/Vector.h</a></div>
<div>that only a single datatype is supported for your Vec and Matrix wrappers (PetscScalar).</div><div><br></div><div>So, for example, in this test</div><div><a href="https://github.com/canercandan/petsc-cxx/blob/master/test/t-create_vector_cxx.cpp">https://github.com/canercandan/petsc-cxx/blob/master/test/t-create_vector_cxx.cpp</a></div>
<div>could the Vector&#39;s x and y instead be built on top of int rather than Scalar? If not, why bother with the template parameter? It would seem that the main advantage of these wrappers is the syntactic sugar for printing.</div>
<div><br></div><div>Jack<br><br><div class="gmail_quote">On Tue, Sep 13, 2011 at 5:58 AM, Caner Candan <span dir="ltr">&lt;<a href="mailto:caner@candan.fr">caner@candan.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi PETSc users,<br>
<br>
Let&#39;s introduce a non-official C++ version of PETSc developed during<br>
my MSc&#39;s degree, this work does not include all the components of the<br>
library, however you can already find some operators like KSPSolver,<br>
MultiplyMatVec and Dot. The framework uses a functors-based design<br>
requiring all components to define an operator function. There are<br>
also a Matrix and Vector data structure classes.<br>
<br>
The sources are available as free software under the terms of the GNU<br>
GPL license at <a href="https://github.com/canercandan/petsc-cxx" target="_blank">https://github.com/canercandan/petsc-cxx</a><br>
<br>
Have a look also into the &quot;test&quot; folder in order to see how it works.<br>
(<a href="https://github.com/canercandan/petsc-cxx/tree/master/test" target="_blank">https://github.com/canercandan/petsc-cxx/tree/master/test</a>)<br>
<br>
To build the project, kindly read the README file at<br>
<a href="https://github.com/canercandan/petsc-cxx/blob/master/README" target="_blank">https://github.com/canercandan/petsc-cxx/blob/master/README</a><br>
<br>
BR,<br>
<font color="#888888">Caner Candan<br>
</font></blockquote></div><br></div>