Last change
on this file since 469 was
469,
checked in by Peter, 17 years ago
|
non compiling checking before revision after design meeting
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
715 bytes
|
Line | |
---|
1 | // $Id: VectorView.h 469 2005-12-19 14:58:29Z peter $ |
---|
2 | |
---|
3 | #ifndef _theplu_classifier_vectorview_ |
---|
4 | #define _theplu_classifier_vectorview_ |
---|
5 | |
---|
6 | #include <c++_tools/classifier/VectorAbstract.h> |
---|
7 | |
---|
8 | #include <vector> |
---|
9 | |
---|
10 | namespace theplu { |
---|
11 | namespace classifier { |
---|
12 | |
---|
13 | class MatrixView; |
---|
14 | |
---|
15 | /// |
---|
16 | /// Class for general vector view |
---|
17 | /// |
---|
18 | |
---|
19 | class VectorView : public VectorAbstract |
---|
20 | { |
---|
21 | |
---|
22 | public: |
---|
23 | |
---|
24 | /// |
---|
25 | /// Constructor |
---|
26 | /// |
---|
27 | VectorView(const MatrixView&, const size_t, const bool row); |
---|
28 | |
---|
29 | /// |
---|
30 | /// |
---|
31 | /// |
---|
32 | size_t size(void) const; |
---|
33 | |
---|
34 | /// |
---|
35 | /// |
---|
36 | /// |
---|
37 | const double& operator()(const size_t) const; |
---|
38 | |
---|
39 | private: |
---|
40 | VectorView(); |
---|
41 | |
---|
42 | const bool column_vector_; |
---|
43 | const size_t index_; |
---|
44 | const MatrixView* matrix_; |
---|
45 | |
---|
46 | }; |
---|
47 | |
---|
48 | }} // of namespace classifier and namespace theplu |
---|
49 | |
---|
50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.