Skip to content

Commit 4d9202c

Browse files
author
Ferdinando Ametrano
committed
merged branches/R01000x-branch into trunk, respecting ancestry
1 parent 1e09506 commit 4d9202c

20 files changed

+342
-208
lines changed

Contributors.txt

+114-28
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,118 @@
11

2-
We gratefully acknowledge contributions from Nathan Abbott, Xavier
3-
Abulker, Toyin Akin, Marius Akre, Mario Aleppo, Jose Aparicio, Sercan
4-
Atalik, Cl�ment Barret, Christopher Baus, Thomas Becker, Micha�l
5-
Benguigui, Adolfo Benin, Hachemi Benyahia, Luca Berardi, Sylvain
6-
Bertrand, David Binderman, Theo Boafo, Fakher Braham, Joe Byers,
7-
Antoine Cellerier, Yee Man Chan, Aurelien Chanudet, Yiping Chen,
8-
Yanice Cherrak, Warren Chou, Jon Davidson, Daniele De Francesco,
9-
Fr�d�ric Degraeve, Piero Del Boca, Piter Dias, Cristina Duminuco, Dirk
10-
Eddelbuettel, Bernd Engelmann, Giorgio Facchinetti, Paul Farrington,
11-
Lorella Fatone, Luca Ferraro, Chiara Fornarola, Silvia Frasson,
12-
Andreas Gaida, Matteo Gallivanoni, Roman Gitlin, Marek Glowacki,
13-
Richard Gomes, Richard Gould, Florent Grenier, Cavit Hafizoglu,
14-
Michael Heckl, Laurent Hoffmann, Beno�t Houzelle, Frank H�vermann,
15-
Charles Chongseok Hyun, Simon Ibbotson, Tomoya Kawanishi, Gary
16-
Kennedy, Matt Knox, Andrew Kolesnikov, Silakhdar Krikeb, Yan Kuang,
17-
Allen Kuo, Paul Laderoute, James Lee, Samuel Lerouge, Gang Liang,
18-
Robert Lopez, Andr� Louw, John Maiden, Katiuscia Manzoni, Francesca
19-
Mariani, Slava Mazur, Enrico Michelotti, Radu Mondescu, Bart Mosley,
20-
Tiziano M�ller, Bojan Nikolic, Jean Nkeng, Adrian O'Neill, Andrea
21-
Odetti, Mike Parker, Guillaume Pealat, Gilbert Peffer, Walter
22-
Penschke, Francesco Perissin, Adrien Pinatton, Gianni Piolanti,
23-
Mario Pucci, J. Erik Radmall, Fabio Ramponi, Maria Cristina Recchioni,
24-
Dimitri Reiswich, Sadruddin Rejeb, Alessandro Roveda, Mohamed Amine Sadaoui,
25-
Alpha Sanou Toure, Tamas Sashalmi, Peter Schmitteckert, Ralph Schreyer, David
26-
Schwartz, Eugene Shevkoplyas, Enrico Sirola, Maxim Sokolov, Niels
27-
Elken S�nderby, Andreas Spengler, Roland Stamm, Marco Tarenghi,
28-
Fran�ois du Vignaud, Charles Whitmore, Bernd Johannes Wuebben, Sun
29-
Xiuxin, Jeff Yu, and Francesco Zirilli.
2+
We gratefully acknowledge contributions from:
3+
4+
Nathan Abbott
5+
Xavier Abulker
6+
Toyin Akin
7+
Marius Akre
8+
Mario Aleppo
9+
Jose Aparicio
10+
Sercan Atalik
11+
Cl�ment Barret
12+
Christopher Baus
13+
Thomas Becker
14+
Micha�l Benguigui
15+
Adolfo Benin
16+
Hachemi Benyahia
17+
Luca Berardi
18+
Sylvain Bertrand
19+
David Binderman
20+
Theo Boafo
21+
Fakher Braham
22+
Joe Byers
23+
Antoine Cellerier
24+
Yee Man Chan
25+
Aurelien Chanudet
26+
Yiping Chen
27+
Yanice Cherrak
28+
Warren Chou
29+
Jon Davidson
30+
Daniele De Francesco
31+
Fr�d�ric Degraeve
32+
Piero Del Boca
33+
Piter Dias
34+
Cristina Duminuco
35+
Dirk Eddelbuettel
36+
Bernd Engelmann
37+
Giorgio Facchinetti
38+
Paul Farrington
39+
Lorella Fatone
40+
Luca Ferraro
41+
Chiara Fornarola
42+
Silvia Frasson
43+
Andreas Gaida
44+
Matteo Gallivanoni
45+
Roman Gitlin
46+
Marek Glowacki
47+
Richard Gomes
48+
Richard Gould
49+
Florent Grenier
50+
Cavit Hafizoglu
51+
Michael Heckl
52+
Laurent Hoffmann
53+
Beno�t Houzelle
54+
Frank H�vermann
55+
Charles Chongseok Hyun
56+
Simon Ibbotson
57+
Norbert Irmer
58+
Tomoya Kawanishi
59+
Gary Kennedy
60+
Matt Knox
61+
Andrew Kolesnikov
62+
Silakhdar Krikeb
63+
Yan Kuang
64+
Allen Kuo
65+
Paul Laderoute
66+
James Lee
67+
Samuel Lerouge
68+
Gang Liang
69+
Robert Lopez
70+
Andr� Louw
71+
John Maiden
72+
Katiuscia Manzoni
73+
Francesca Mariani
74+
Slava Mazur
75+
Enrico Michelotti
76+
Radu Mondescu
77+
Bart Mosley
78+
Tiziano M�ller
79+
Bojan Nikolic
80+
Jean Nkeng
81+
Adrian O'Neill
82+
Andrea Odetti
83+
Mike Parker
84+
Guillaume Pealat
85+
Gilbert Peffer
86+
Walter Penschke
87+
Francesco Perissin
88+
Adrien Pinatton
89+
Gianni Piolanti
90+
Mario Pucci
91+
J. Erik Radmall
92+
Fabio Ramponi
93+
Maria Cristina Recchioni
94+
Dimitri Reiswich
95+
Sadruddin Rejeb
96+
Alessandro Roveda
97+
Mohamed Amine Sadaoui
98+
Alpha Sanou Toure
99+
Tamas Sashalmi
100+
Peter Schmitteckert
101+
Ralph Schreyer
102+
David Schwartz
103+
Eugene Shevkoplyas
104+
Enrico Sirola
105+
Maxim Sokolov
106+
Niels Elken S�nderby
107+
Andreas Spengler
108+
Roland Stamm
109+
Marco Tarenghi
110+
Fran�ois du Vignaud
111+
Charles Whitmore
112+
Bernd Johannes Wuebben
113+
Sun Xiuxin
114+
Jeff Yu
115+
Francesco Zirilli
30116

31117
QuantLib includes code taken from Peter J�ckel's book "Monte Carlo
32118
Methods in Finance".

News.txt

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Changes for QuantLib 1.0.1:
66
- The Singleton class should now work correctly when used on the .Net
77
platform (thanks to Nathan Abbott.)
88

9+
- QuantLib now compiles with the Sun Studio compiler on the Solaris
10+
platform (thanks to Norbert Irmer for the report and for testing.)
11+
912
- Bug fix: let an IndexedCashFlow observe its index.
1013
Previously, index changes would not be propagated to the cash flow
1114
and thus to any observers of the latter. This affected zero-coupon

QuantLib_vc7.vcproj

+6
Original file line numberDiff line numberDiff line change
@@ -5649,6 +5649,9 @@
56495649
<File
56505650
RelativePath=".\ql\config.msvc.hpp">
56515651
</File>
5652+
<File
5653+
RelativePath=".\ql\config.sun.hpp">
5654+
</File>
56525655
<File
56535656
RelativePath=".\ql\currency.cpp">
56545657
</File>
@@ -5709,6 +5712,9 @@
57095712
<File
57105713
RelativePath=".\ql\interestrate.hpp">
57115714
</File>
5715+
<File
5716+
RelativePath=".\ql\mathconstants.hpp">
5717+
</File>
57125718
<File
57135719
RelativePath=".\ql\money.cpp">
57145720
</File>

QuantLib_vc8.vcproj

+8
Original file line numberDiff line numberDiff line change
@@ -7232,6 +7232,10 @@
72327232
RelativePath=".\ql\config.msvc.hpp"
72337233
>
72347234
</File>
7235+
<File
7236+
RelativePath=".\ql\config.sun.hpp"
7237+
>
7238+
</File>
72357239
<File
72367240
RelativePath=".\ql\currency.cpp"
72377241
>
@@ -7312,6 +7316,10 @@
73127316
RelativePath=".\ql\interestrate.hpp"
73137317
>
73147318
</File>
7319+
<File
7320+
RelativePath=".\ql\mathconstants.hpp"
7321+
>
7322+
</File>
73157323
<File
73167324
RelativePath=".\ql\money.cpp"
73177325
>

QuantLib_vc9.vcproj

+8
Original file line numberDiff line numberDiff line change
@@ -7589,6 +7589,10 @@
75897589
RelativePath=".\ql\config.msvc.hpp"
75907590
>
75917591
</File>
7592+
<File
7593+
RelativePath=".\ql\config.sun.hpp"
7594+
>
7595+
</File>
75927596
<File
75937597
RelativePath=".\ql\currency.cpp"
75947598
>
@@ -7669,6 +7673,10 @@
76697673
RelativePath=".\ql\interestrate.hpp"
76707674
>
76717675
</File>
7676+
<File
7677+
RelativePath=".\ql\mathconstants.hpp"
7678+
>
7679+
</File>
76727680
<File
76737681
RelativePath=".\ql\money.cpp"
76747682
>

acinclude.m4

-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
11

2-
# QL_CHECK_CONSTANT(NAME,TYPE,HEADER,VALUE,DESCRIPTION)
3-
# ----------------------------------------------
4-
# Check whether the constant NAME (of type TYPE) exists in HEADER.
5-
# It defines it as VALUE if it cannot be found.
6-
AC_DEFUN([QL_CHECK_CONSTANT],
7-
[AC_MSG_CHECKING([for $1])
8-
AC_TRY_COMPILE(
9-
[@%:@include<$3>],
10-
[$2 x = $1;],
11-
[AC_MSG_RESULT([yes])],
12-
[AC_MSG_RESULT([no])
13-
AC_DEFINE([$1],[$4],[$5])
14-
])
15-
])
16-
172
# QL_CHECK_LONG_LONG
183
# ----------------------------------------------
194
# Check whether long long is supported.

configure.ac

-15
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,6 @@ AC_LANG([C++])
6565

6666
# Check for mandatory features
6767

68-
QL_CHECK_CONSTANT([M_PI],[double],[cmath],
69-
[3.141592653589793238462643383280],[pi])
70-
QL_CHECK_CONSTANT([M_PI_2],[double],[cmath],
71-
[1.57079632679489661923],[pi/2])
72-
QL_CHECK_CONSTANT([M_SQRTPI],[double],[cmath],
73-
[1.77245385090551602792981],[sqrt(pi)])
74-
QL_CHECK_CONSTANT([M_1_SQRTPI],[double],[cmath],
75-
[0.564189583547756286948],[1/sqrt(pi)])
76-
QL_CHECK_CONSTANT([M_SQRT2],[double],[cmath],
77-
[1.41421356237309504880],[sqrt(2)])
78-
QL_CHECK_CONSTANT([M_SQRT_2],[double],[cmath],
79-
[0.7071067811865475244008443621048],[1/sqrt(2)])
80-
QL_CHECK_CONSTANT([M_LN2],[double],[cmath],
81-
[0.693147180559945309417],[ln(2)])
82-
8368
QL_CHECK_ASINH
8469

8570
# Check for Boost components

ql/Makefile.am

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ this_include_HEADERS = \
3737
index.hpp \
3838
instrument.hpp \
3939
interestrate.hpp \
40+
mathconstants.hpp \
4041
money.hpp \
4142
numericalmethod.hpp \
4243
option.hpp \
@@ -98,6 +99,7 @@ EXTRA_DIST= \
9899
config.ansi.hpp \
99100
config.msvc.hpp \
100101
config.mingw.hpp \
102+
config.sun.hpp \
101103
userconfig.hpp
102104

103105
quantlib.hpp: Makefile.am
@@ -111,7 +113,7 @@ quantlib.hpp: Makefile.am
111113
echo "#endif" >> $@
112114
echo >> $@
113115
for i in $(filter-out auto_link.hpp config.hpp quantlib.hpp \
114-
qldefines.hpp version.hpp, \
116+
qldefines.hpp mathconstants.hpp version.hpp, \
115117
$(this_include_HEADERS)); do \
116118
echo "#include <${subdir}/$$i>" >> $@; \
117119
done

ql/config.ansi.hpp

-9
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,5 @@
2323

2424
#include <ql/userconfig.hpp>
2525

26-
/*******************************************
27-
System configuration section:
28-
do not modify the following definitions.
29-
*******************************************/
30-
31-
#define M_SQRT_2 0.7071067811865475244008443621048490392848359376887
32-
#define M_1_SQRTPI 0.564189583547756286948
33-
#define M_SQRTPI 1.77245385090551602792981
34-
3526

3627
#endif

ql/config.mingw.hpp

-18
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,5 @@
2323

2424
#include <ql/userconfig.hpp>
2525

26-
/*******************************************
27-
System configuration section:
28-
do not modify the following definitions.
29-
*******************************************/
30-
31-
#define M_SQRT_2 0.7071067811865475244008443621048490392848359376887
32-
#define M_1_SQRTPI 0.564189583547756286948
33-
#define M_SQRTPI 1.77245385090551602792981
34-
//#define M_IVLN10 0.434294481903251827651 /* 1 / log(10) */
35-
//#define M_LOG2_E 0.693147180559945309417
36-
//#define M_TWOPI (M_PI * 2.0)
37-
//#define M_3PI_4 2.3561944901923448370E0
38-
//#define M_SQRT1_2 0.7071067811865475244008443621048490392848359376887
39-
//#define M_LN2LO 1.9082149292705877000E-10
40-
//#define M_LN2HI 6.9314718036912381649E-1
41-
//#define M_SQRT3 1.73205080756887719000
42-
//#define M_INVLN2 1.4426950408889633870E0 /* 1 / log(2) */
43-
4426

4527
#endif

0 commit comments

Comments
 (0)