Konstantina Panagiotopoulou <kwno...@hotmail.com> wrote on 03/01/2014
12:00:55 PM:
>
> I was wondering if there are any bindings of X10 to the GNU multiple
> precision library (gmp).
> Or, if there is some other library to handle arbitary precision in X10.
>
Hi,
As far as I know, we don't have bindings to gmp or to any other
arbitrary precision library. However, this would certainly be an
interesting capability to have and we would welcome contributions.
I would suggest looking at the implementation of x10.lang.Complex.
For Native X10 (X10 compiled to C++) we map Complex to std::complex. My
initial guess is that a binding to gmp would mainly consist of similar
classes for each of the types in gmp.
There are two parts to this implementation:
(1) The X10-level API (x10.runtime/src-x10/x10/lang/Complex)
which declares Complex as a NativeRep class and has @Native implementations
for C++. If you only want to wrap a native implementation, you would do
something more like Double.x10 (all methods are native, no X10 body).
(2) The C++ level implementation of the @NativeRep class
(x10.runtime/src-cpp/x10/lang/Complex.{cc,h}).
--dave
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users