quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_math_vector.a #include <VectorComplexFloat.h> VectorComplexFloat(long length = DEF_LENGTH, complexfloat value = DEF_VALUE); VectorComplexFloat(const VectorComplexFloat& vector);
description:VectorComplexFloat val0(5); complexfloat mean; complexfloat 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"VectorComplexFloat";
static const long ERR = 23000;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
boolean debug(const unichar* message) const;
~VectorComplexFloat();
VectorComplexFloat(long length = DEF_LENGTH, complexfloat value = DEF_VALUE );
VectorComplexFloat(const VectorComplexFloat& vector);
assign methods: assign methods are inherited from the MVector class
VectorComplexFloat& operator= (const VectorComplexFloat& vector);
boolean read(Sof& sof, long tag, const String& name = CLASS_NAME);
boolean write(Sof& sof, long tag, const String& name = CLASS_NAME);
equality methods: 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);
VectorComplexFloat(const String& arg, unichar delim_a = DEF_DELIM);
VectorComplexFloat(const unichar* arg, unichar delim_a = DEF_DELIM);
VectorComplexFloat& operator= (complexfloat value);
boolean real(VectorFloat& arg) const;
boolean imag(VectorFloat& arg) const;
boolean mag(VectorFloat& arg) const;
boolean angle(VectorFloat& arg) const;
boolean conjugate(const VectorComplexFloat& arg);
boolean conjugate();
VectorComplexFloat 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();
VectorComplexFloat val0; VectorComplexFloat val1(complexfloat(4, 3)); complexfloat dotp; complexfloat 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();