quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_math_scalar.a #include <Double.h> Double(double arg = DEF_VALUE); Double(const Double& arg);
description:Double val0; val0 = 10.0; Double val1(5.0); Double val2; val2 = val0.exp10(2.0) + val1.pow(3.0);
static const String CLASS_NAME = L"Double";
static const long ERR = 21100;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
setDebug is inherited from the MScalar template class
boolean debug(const unichar* message) const;
~Double();
Double(double arg = DEF_VALUE);
Double(const Double& arg);
assign methods are inherited from the MScalar template class
Double& operator= (const Double& arg);
the sofSize method is inherited from the MScalar template class
boolean read(Sof& sof, long tag, const String& name = CLASS_NAME) const;
boolean write(Sof& sof, long tag, const String& name = CLASS_NAME) const;
readData and writeData methods are inherited from the MScalar template class
equality methods are inherited from the MScalar template class
static void* operator new(size_t size);
static void* operator new[](size_t size);
static void operator delete(void* ptr);
static void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
the clear is inherited from the MScalar template class
Double& operator= (double arg);
double bor(double, double);
double band(double, double);
double bxor(double, double);
double brs(double, double);
double bls(double, double);
double bcmpl(double);
double mod(double, double);
double& operator%= (double);
double& operator% (double);
Double val0(5.0); String tmp_filename(L"foo"); Sof tmp_file; tmp_file.open(tmp_filename, File::WRITE_ONLY, File::TEXT); val0.write(tmp_file, (long)0); tmp_file.close();
Double rand_num; double value; double value1; // using default seed // value = rand_num.randSeed(); // generate a random number between min and max // double min = 0; double max = 10.0; value1 = rand_num.rand(min, max); // Gaussian random number generation // double mean = 5.0; double std_dev = 3.0; value1 = rand_num.grand(mean, std_dev);