Home > SPlaC v1_0 > Mie > GEN > GenCheckSumReal.m

GenCheckSumReal

PURPOSE ^

Check potential loss of precision when taking the real part of elements of an array

SYNOPSIS ^

function realret=GenCheckSumReal(ar1,sVar,sCaller)

DESCRIPTION ^

 Check potential loss of precision when taking the real part of elements of an array
 See the supplementary information for a discussion of loss of precision.
 Returns real(ar1), the real part of the array.
 A warning is issued if numerical problems are encountered
 (see GenCheckSumNumPb for more details).
 No check is performed if the global variable noCheckSum is defined
 and equal to true.

 Parameters:
 - ar1: scalar, vector, or matrix
 - sVar: string describing the variable that is being calculated
 - sCaller: string describing the function in which the calculation is
            performed

 Returns: real(ar1)

 This file is part of the SPlaC v1.0 package (copyright 2008)
 Check the README file for further information

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 realret=real(ar1);
0002 
0003 global noCheckSum;
0004 if (isempty(noCheckSum) || ~noCheckSum)
0005     GenCheckSumNumPb(realret,ar1,sVar,sCaller);
0006 end

This web page is part of the SPlaC package © 2008. Contact: Eric Le Ru
Generated on Wed 03-Dec-2008 11:10:14 by m2html © 2003 (adapted)