Code covered by the BSD License
-
[A,b,P]=gausscppSolve1(A,b)
-
[Q,R]=mp_myqr(A,flag)
QR Computes QR decomposition of A.
-
[U,S,V]=mp_mysvd(A,dummy)
-
[x,LUA,b,P]=mp_gausscpp(A,b)
-
default_precision=mp_set_defa...
Sets default precision to round(x) for use within the mp_toolbox
-
dvec_sort_bubble_a( a )
DVEC_SORT_BUBBLE_A ascending sorts a real vector using bubble sort.
-
gausscppSolve2(U,y)
function x = gausscppSolve2(U,y)
-
out=mp_euler(precision)
-
out=mp_log2(precision)
-
out=mp_pi(precision)
-
mp(x,y)
MP multiple precision class constructor.
-
mp_TESTING.m
-
mp_TESTING2.m
-
mp_makeall.m
-
mp_makeallDouble.m
-
View all files
Multiple Precision Toolbox for MATLAB
by Ben Barrowes
01 Dec 2004
(Updated 18 Jun 2009)
This toolbox defines a new mp class allowing multiple precision objects in MATLAB.
|
Watch this File
|
| File Information |
| Description |
The mp toolbox defines a new class, the mp class, which holds arbitrary precision quantities. Many common numerical functions are overloaded for this class and therefore work without modification to source code. Look at the @mp directory under the MATLAB directory for a list of mp supported functions. If the function is not specifically written for mp objects, it still may work if the function in question relies only on functions in the @mp directory. Precompiled and builtin function from TMW like eig, etc. will not work with mp objects unless specifically written using overloaded functions from the @mp directory.A simple script, mp_makeall.m looks through the current variables,and converts all doubles to mp objects.The mp toolbox is only implemented for base 10 quantities, and the rounding mode is fixed to be GMP_RNDN (unless you change it in all the /private/*.c files and recompile).The overloaded functions sum, min, and max only work for 1 or 2 dimensional mp objects right now.mp random numbers can be generated using rand() if rand at least 1 of the input arguments is an mp object. However, the seed given to gmp_randseed_ui is only in the range 0<seed<1000000, but this can be adjusted in @mp/rand.mA zeta function using m arithmetic is provided, whereas native MATLAB has no such function except for sym objects. |
| Acknowledgements |
This file inspired
Variable Precision Integer Arithmetic and Hpf A Big Decimal Class.
|
| MATLAB release |
MATLAB 7 (R14)
|
| Other requirements |
GMP (GNU Multiple Precision Arithmetic Library): http://www.swox.com/gmp/ and the MPFR (multiple-precision floating-point computations with exact rounding): http://www.mpfr.org/ |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 09 Dec 2004 |
Added support for pi, euler, and log(2) constants. |
| 22 Dec 2004 |
Bug fixes. Added functionality. |
| 27 Dec 2004 |
fixed memory leak |
| 05 Jan 2005 |
speed enhancements |
| 17 Feb 2005 |
Som eenhancements and bug fixes. Added complex.m. |
| 05 Jul 2005 |
Bug fix release. |
| 09 Aug 2005 |
Some bug fixes, including one with subsasgn. |
| 14 Feb 2006 |
02/06/06 - fixed ones display bug
02/06/06 - added mp_dontmakeall functionality to mp_makeall.m
02/06/06 - added cumprod.m for mp objects
02/10/06 - added inv, fixed eye not returning mp object |
| 22 Nov 2006 |
Added some functionality. Tested under recent MPFR and GMP. Mac installation instructions. |
| 18 Jun 2009 |
License fixed |
|
Contact us