... | ... |
@@ -27,6 +27,9 @@ public: |
27 | 27 |
template <class Parser> |
28 | 28 |
RowMatrix(Parser &p, unsigned nrow, unsigned ncol); |
29 | 29 |
|
30 |
+ template <class Parser> |
|
31 |
+ RowMatrix(Parser &p, unsigned nrow, std::vector<unsigned> whichCols); |
|
32 |
+ |
|
30 | 33 |
unsigned nRow() const {return mNumRows;} |
31 | 34 |
unsigned nCol() const {return mNumCols;} |
32 | 35 |
|
... | ... |
@@ -86,7 +89,6 @@ public: |
86 | 89 |
friend Archive& operator>>(Archive &ar, ColMatrix &mat); |
87 | 90 |
}; |
88 | 91 |
|
89 |
- |
|
90 | 92 |
// construct RowMatrix from file |
91 | 93 |
template <class Parser> |
92 | 94 |
RowMatrix::RowMatrix(Parser &p, unsigned nrow, unsigned ncol) : mNumRows(nrow), |
... | ... |
@@ -106,6 +108,16 @@ mNumCols(ncol) |
106 | 108 |
} |
107 | 109 |
} |
108 | 110 |
|
111 |
+// This should construct a matrix, only reading the columns in "whichCols" |
|
112 |
+// from the file. The matrix should have "nrow" rows and "whichCols.size()" |
|
113 |
+// columns. |
|
114 |
+template <class Parser> |
|
115 |
+RowMatrix(Parser &p, unsigned nrow, std::vector<unsigned> whichCols) |
|
116 |
+{ |
|
117 |
+ |
|
118 |
+ |
|
119 |
+} |
|
120 |
+ |
|
109 | 121 |
// construct ColMatrix from file |
110 | 122 |
template <class Parser> |
111 | 123 |
ColMatrix::ColMatrix(Parser &p, unsigned nrow, unsigned ncol) : mNumRows(nrow), |