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
from
Multiple Precision Toolbox for MATLAB
by Ben Barrowes
This toolbox defines a new mp class allowing multiple precision objects in MATLAB.
|
| mp_makeallDouble.m |
% converts all mp objects to double variables
% put variable names as cell strings into mp_dontmakeallDouble if you
% don't want them converted
% e.g. mp_dontmakeallDouble={'C1','C2'};
% if you don't want C1 and C2 converted to doubles
tempVarList=whos;
if exist('default_precision')~=1
default_precision=mp_Defaults(mp(0));
end
for tempLoopVar=1:length(tempVarList)
if strcmp(tempVarList(tempLoopVar).class,'mp')
tempGoon=1;
if exist('mp_dontmakeallDouble')
if any(strcmp(tempVarList(tempLoopVar).name,mp_dontmakeallDouble))
tempGoon=0;
end
end
if tempGoon
if ~strcmp(tempVarList(tempLoopVar).name,'default_precision')
eval([tempVarList(tempLoopVar).name,'=double(',tempVarList(tempLoopVar).name,');']);
end
end
end
end
clear tempVarList tempLoopVar tempGoon
|
|
Contact us at files@mathworks.com