Changeset 1117 for trunk/test/math


Ignore:
Timestamp:
Dec 29, 2011, 7:36:48 PM (10 years ago)
Author:
sam
Message:

math: move the Remez algorithm implementation to the core.

Location:
trunk/test/math
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/math/Makefile.am

    r1112 r1117  
    2323poly_DEPENDENCIES = $(top_builddir)/src/liblol.a
    2424
    25 remez_SOURCES = remez.cpp remez-matrix.h remez-solver.h
     25remez_SOURCES = remez.cpp
    2626remez_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
    2727remez_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
  • trunk/test/math/remez.cpp

    r1091 r1117  
    1313#endif
    1414
    15 #include <cstring>
    1615#include <cstdio>
     16#include <cstdlib>
    1717
    1818#if USE_SDL && defined __APPLE__
     
    2020#endif
    2121
    22 #include "core.h"
     22#include "lol/math/real.h"
     23#include "lol/math/matrix.h"
     24#include "lol/math/remez.h"
    2325
    2426using lol::real;
    25 
    26 #include "remez-matrix.h"
    27 #include "remez-solver.h"
     27using lol::RemezSolver;
    2828
    2929/* The function we want to approximate */
     
    4242int main(int argc, char **argv)
    4343{
    44     RemezSolver<2> solver;
     44    RemezSolver<2, real> solver;
    4545    solver.Run(real::R_1 >> 400, real::R_PI_2 * real::R_PI_2, myfun, myerr, 40);
    4646
Note: See TracChangeset for help on using the changeset viewer.