quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_math_vector.a #include <VectorComplexDouble.h> VectorComplexDouble(long length = DEF_LENGTH, complexdouble value = DEF_VALUE); VectorComplexDouble(const VectorComplexDouble& vector);
description:VectorComplexDouble val0(5); complexdouble mean; complexdouble variance; val0.assign(L"1-1j, 2-2j, -3+3j, -4-4j, 5j"); mean = val0.mean(); if (mean != 3) { Error::handle(val0.name(), L"mean", Error::TEST, __FILE__, __LINE__); Integral::exit(); } variance = val0.var();
static const String CLASS_NAME = L"VectorComplexDouble";
static const long ERR = 23100;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
the setDebug method is inherited from the MVector template class
boolean debug(const unichar* message) const;
~VectorComplexDouble();
VectorComplexDouble(long length = DEF_LENGTH, complexdouble value = DEF_VALUE );
VectorComplexDouble(const VectorComplexDouble& vector);
these methods are inherited from the MVector class
VectorComplexDouble& operator= (const VectorComplexDouble& vector);
boolean read(Sof& sof, long tag, const String& name = CLASS_NAME);
boolean write(Sof& sof, long tag, const String& name = CLASS_NAME);
these methods are inherited from the MVector 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);
VectorComplexDouble(const String& arg, unichar delim_a = DEF_DELIM);
VectorComplexDouble(const unichar* arg, unichar delim_a = DEF_DELIM);
VectorComplexDouble& operator= (complexdouble value);
boolean real(VectorDouble& arg) const;
boolean imag(VectorDouble& arg) const;
boolean mag(VectorDouble& arg) const;
boolean angle(VectorDouble& arg) const;
boolean conjugate(const VectorComplexDouble& arg);
boolean conjugate();
VectorComplexDouble val0(3); val0.assign(L"5+5j, 7-7j, -9+9j"); 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();
VectorComplexDouble val0; VectorComplexDouble val1(complexdouble(4, 3)); complexdouble dotp; complexdouble norm_val; val0.assign(L"+1+1j, 3+3j, 5j, +7-7j"); val1.assign(L"-2-2j, 4-4j, -6j, -3+3j"); dotp = val0.dotProduct(val1); norm_val = val1.norm();