name: MVector


g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_math_vector.a

#include <MVector.h>

MVector(const MVector& arg);
MVector(long len);
boolean setLength(long len, boolean preserve_values = true);
boolean setCapacity(long cap, boolean preserve_values = true);
boolean add(const MVector& source_vector);
TIntegral min(long& position) const;
TIntegral dotProduct(const MVector& vector) const;
TIntegral norm(const MVector& vector) const;
quick start:

MVector<Double, double> val0;
MVector<Double, double> val1;
MVector<Double, double> vsum;

double dotp;
double norm_val;
double min_val;
long pos;

val0.assign(L"1, 3, 5, 7");
val1.assign(L"2, 4, 6, 8, 10");

vsum.add(val0, val1);

dotp = val0.dotProduct(val1);
norm_val = val1.norm();
min_val = val1.min(pos);

The MVector class is the base class of the vector classes. It includes the commonly used mathematical, logical, dsp and linear algebra methods for vectors. All the other vector classes are derived from it. A vector object can read itself from (or write itself to) a sof file. The MVector methods are not supposed to be used by the user directly. They are designed for the other vector classes and the MMatrix templates to use.


public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods: