<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I seem to remember that there was some interest in spline libraries
    from a few people lately. So this is just for your information.<br>
    <br>
    Jakob<br>
    <br>
    -------- Original Message --------
    <table class="moz-email-headers-table" border="0" cellpadding="0"
      cellspacing="0">
      <tbody>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject: </th>
          <td>[eigen] Re: Spline revival</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
          <td>Thu, 1 Dec 2011 10:55:14 +0100</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
          <td>Hauke Heibel <a class="moz-txt-link-rfc2396E" href="mailto:hauke.heibel@googlemail.com">&lt;hauke.heibel@googlemail.com&gt;</a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Reply-To:
          </th>
          <td><a class="moz-txt-link-abbreviated" href="mailto:eigen@lists.tuxfamily.org">eigen@lists.tuxfamily.org</a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
          <td>Eigen <a class="moz-txt-link-rfc2396E" href="mailto:eigen@lists.tuxfamily.org">&lt;eigen@lists.tuxfamily.org&gt;</a></td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    <pre>Hi,

I applied the patch to the master branch and fixed the unit tests such
that they are now also compiling with gcc (tested on 4.3).

I will maintain the module and as I said before, any comments are welcome.

- Hauke

On Fri, Nov 25, 2011 at 3:09 PM, Hauke Heibel
<a class="moz-txt-link-rfc2396E" href="mailto:hauke.heibel@googlemail.com">&lt;hauke.heibel@googlemail.com&gt;</a> wrote:
&gt; Hi,
&gt;
&gt; due to a recent request, I revisited my spline fork and adapted code
&gt; from it to the most recent Eigen version. Because the maintenance of
&gt; this quite old fork is a bit ugly, I switched to patch queues. The
&gt; most recent patch file, which was build against today's tip should be
&gt; working fine. If I am not wrong, it can be imported by running
&gt;
&gt; $&gt; hg import splines.patch
&gt;
&gt; from the console.
&gt;
&gt; The patch provides a simple Spline class and an interpolating spline
&gt; fitting in the unsupported module. The Spline class is templated over
&gt; the float type, the dimension and the degree. As for matrices, the
&gt; degree can be chosed dynamically, when it is set to Eigen::Dynamic at
&gt; compile time. The benefit is that with a small and fixed degree which
&gt; is known at compile time, the Spline class needs almost no heap
&gt; allocations.
&gt;
&gt; After running CMake there are some simple unit tests available in
&gt; &lt;build_dir&gt;/unsupported/test/. So far I only tested VC10, x64. There
&gt; are most likely some "typename" keywords missing as VC10 never
&gt; complains and I tend to forget to specify them. :)
&gt;
&gt; There are some design questions which are still open:
&gt;
&gt; 1) Should the global functions below go into a separate namespace as
&gt; e.g. Eigen::Splines or do we keep a single namespace?
&gt; &nbsp;Eigen::KnotAveraging
&gt; &nbsp;Eigen::ChordLengths
&gt;
&gt; 2) Is there a better solution for the static Spline member functions
&gt; Spline::Span and Spline::BasisFunctions? Do they need to be static?
&gt; IIRC, the reason for them being static is that
&gt; a) they need to be used when there is not yet a Spline object
&gt; available (see e.g. SplineFitting&lt;SplineType&gt;::Interpolate)
&gt; b) they can benefit (in particular Spline::BasisFunctions) from
&gt; knowing about the underlying Spline's compile time degree
&gt;
&gt; Any comments are welcome and I hope to be able to merge this soon with
&gt; the master branch.
&gt;
&gt; Regards,
&gt; Hauke



</pre>
  </body>
</html>