#########################################################################
ifeq ($(DEBUG),yes)
- CXXFLAGS = -Wall -g
+ CXXFLAGS = -Wall -pedantic -O3 -g
else
# Optimized compilation
- CXXFLAGS = -Wall -ffast-math -fcaller-saves -finline-functions -funroll-all-loops -O3
+ CXXFLAGS = -Wall -pedantic -O3
endif
all: main
Makefile.depend: *.h *.cc Makefile
$(CC) -M *.cc > Makefile.depend
+clean:
+ rm -f *.o main
+
-include Makefile.depend
Francois Fleuret
May 2001
-Modified 2005, 2007
+Modified 2005, 2007, 2011
}
float Mapping::operator () (float x) const { return f->eval(x); }
-Mapping Mapping::derivative() const { return Mapping(f->derivative()); };
+Mapping Mapping::derivative() const { return Mapping(f->derivative()); }
Mapping Mapping::compose(const Mapping &m) const { return Mapping(f->compose(m.f)); }
Mapping Mapping::add(const Mapping &m) const { return Mapping(new Sum(f, m.f)); }