00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef MATRIXSS_H
00021 #define MATRIXSS_H
00022
00023 #include <vector>
00024
00025 typedef std::vector<double> matrixValues;
00026
00031 class matrixss {
00032
00036 std::vector<int> nimI;
00037
00041 std::vector<int> nimJ;
00042
00043 bool isReduced;
00044 public:
00045 matrixss();
00046
00052 inline void noteIdx(int i, int j) {
00053 nimI.push_back(i);
00054 nimJ.push_back(j);
00055 };
00056
00060 inline void clearIdx() {
00061 nimI.clear();
00062 nimJ.clear();
00063 };
00064
00065
00070 inline int getNValues() const {
00071 return nimI.size();
00072 };
00073
00079 inline int getI(int n) const {
00080 return nimI[n];
00081 };
00082
00088 inline int getJ(int n) const {
00089 return nimJ[n];
00090 };
00091
00096 bool isSymmetric() const;
00097
00104 void reduce();
00105
00114 double product(matrixValues cl, matrixValues cr, matrixValues vals) const;
00115
00120 int getMatIndicesStorageSize();
00121
00122
00126 ~matrixss();
00127
00128 };
00129
00130 #endif