#include <SubMatrix.h>
Definition at line 85 of file SubMatrix.h.
Public Member Functions | |
| SubMatrix (void) | |
| SubMatrix (SubMatrix< T > &sm) | |
| ~SubMatrix (void) | |
| const int | Columns () const |
| const int | Rows () const |
| const int | XDim () const |
| const int | YDim () const |
| const List< int, 2 > | Size () const |
| SubMatrix< T > & | operator= (SubMatrix< T > &sm) |
| T & | operator() (const int i, const int j) |
| Vector< T > & | operator[] (const int i) |
Protected Attributes | |
| Vector< T > * | columns |
| Cleaner< T > * | clean |
| int | xDim |
| int | yDim |
Friends | |
| class | Matrix<T> |
| class | Vector<T> |
|
||||||||||
|
Definition at line 61 of file SubMatrix.inl. References SubMatrix< T >::clean, SubMatrix< T >::columns, SubMatrix< T >::xDim, and SubMatrix< T >::yDim.
|
|
||||||||||
|
Definition at line 71 of file SubMatrix.inl. References SubMatrix< T >::clean, SubMatrix< T >::columns, SubMatrix< T >::xDim, and SubMatrix< T >::yDim. 00072 {
00073 xDim = m.xDim;
00074 yDim = m.yDim;
00075 columns = m.columns;
00076 clean = new Cleaner<T>(columns);
00077
00078 }
|
|
||||||||||
|
Definition at line 84 of file SubMatrix.inl. References SubMatrix< T >::clean. 00085 {
00086
00087 if(clean != 0)
00088 {
00089 delete clean;
00090 }
00091
00092 }
|
|
|||||||||
|
Definition at line 103 of file SubMatrix.inl. 00104 {
00105 return xDim;
00106 }
|
|
||||||||||||||||
|
Definition at line 151 of file SubMatrix.inl. References SubMatrix< T >::columns, and Utility::RunTimeError(). 00152 {
00153 if(i<0 || i>=dims[0] || j<0 || j>=dims[1])
00154 {
00155 cerr << "Line: " << __LINE__ << " File: " << __FILE__ << endl;
00156 Utility::RunTimeError("Index outside bounds!");
00157 }
00158
00159 return columns[i].data[j];
00160
00161 }
|
|
||||||||||
|
Definition at line 135 of file SubMatrix.inl. References SubMatrix< T >::clean, SubMatrix< T >::columns, SubMatrix< T >::xDim, and SubMatrix< T >::yDim. 00136 {
00137 xDim = m.xDim;
00138 yDim = m.yDim;
00139 columns = m.columns;
00140 delete clean;
00141 clean = new Cleaner<T>(columns);
00142
00143
00144 return *this;
00145 }
|
|
||||||||||
|
Definition at line 164 of file SubMatrix.inl. References SubMatrix< T >::columns. 00165 {
00166 return columns[i];
00167 }
|
|
|||||||||
|
Definition at line 109 of file SubMatrix.inl. 00110 {
00111 return yDim;
00112 }
|
|
|||||||||
|
Definition at line 129 of file SubMatrix.inl. 00130 {
00131 return List(dims[1],dims[0]);
00132 }
|
|
|||||||||
|
Definition at line 116 of file SubMatrix.inl. 00117 {
00118 return xDim;
00119 }
|
|
|||||||||
|
Definition at line 122 of file SubMatrix.inl. 00123 {
00124 return yDim;
00125 }
|
|
|||||
|
Definition at line 87 of file SubMatrix.h. |
|
|||||
|
Definition at line 88 of file SubMatrix.h. |
|
|||||
|
Definition at line 92 of file SubMatrix.h. Referenced by SubMatrix< T >::operator=(), Matrix< T >::Slice(), SubMatrix< T >::SubMatrix(), and SubMatrix< T >::~SubMatrix(). |
|
|||||
|
Definition at line 91 of file SubMatrix.h. Referenced by SubMatrix< T >::operator()(), SubMatrix< T >::operator=(), SubMatrix< T >::operator[](), Matrix< T >::Slice(), and SubMatrix< T >::SubMatrix(). |
|
|||||
|
Definition at line 93 of file SubMatrix.h. Referenced by SubMatrix< T >::operator=(), Matrix< T >::Slice(), and SubMatrix< T >::SubMatrix(). |
|
|||||
|
Definition at line 94 of file SubMatrix.h. Referenced by SubMatrix< T >::operator=(), Matrix< T >::Slice(), and SubMatrix< T >::SubMatrix(). |