Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members File Members Related Pages

# TSV.h

Go to the documentation of this file.

    00001
    00037 #ifndef __TSV_H__
    00038 #define __TSV_H__
    00039
    00040 #include "SmartArray.h"
    00041
    00043 class TSV : public SmartArray<double>
    00044 {
    00045 public:
    00046
    00047         TSV(int size = 0) : SmartArray<double>(size) { }
    00048         TSV(const TSV& x) : SmartArray<double>(x) { }
    00049
    00050         double Norm2() const;
    00051         TSV operator-(const TSV& rhs) const;
    00052
    00053         friend double Norm2(const TSV& tsv) { return tsv.Norm2(); }
    00054         friend int CompareTSVElement(const void* elem1, const void* elem2);
    00055
    00056         void Sort() { SmartArray<double>::Sort(CompareTSVElement); }
    00057 };
    00058
    00059 #endif //__TSV_H__