#include <nrutil_mtl.h>
Public Member Functions | |
| NRMat () | |
| NRMat (int n, int m) | |
| NRMat (const T &a, int n, int m) | |
| NRMat (const T *a, int n, int m) | |
| NRMat (Matrix &rhs) | |
| NRMat (const NRMat &rhs) | |
| NRMat & | operator= (const NRMat &rhs) |
| Matrix::OneD | operator[] (const int i) const |
| int | nrows () const |
| int | ncols () const |
| operator Matrix () const | |
| ~NRMat () | |
| NRMat () | |
| NRMat (int n, int m) | |
| NRMat (const T &a, int n, int m) | |
| NRMat (const T *a, int n, int m) | |
| NRMat (const NRMat &rhs) | |
| NRMat & | operator= (const NRMat &rhs) |
| NRMat & | operator= (const T &a) |
| T * | operator[] (const int i) |
| const T * | operator[] (const int i) const |
| int | nrows () const |
| int | ncols () const |
| ~NRMat () | |
| NRMat () | |
| NRMat (int n, int m) | |
| NRMat (const T &a, int n, int m) | |
| NRMat (const T *a, int n, int m) | |
| NRMat (TNT::Matrix< T > &rhs) | |
| NRMat (const NRMat &rhs) | |
| NRMat & | operator= (const NRMat &rhs) |
| NRMat & | operator= (const T &rhs) |
| T * | operator[] (const int i) const |
| int | nrows () const |
| int | ncols () const |
| operator TNT::Matrix () const | |
| ~NRMat () | |
| NRMat () | |
| NRMat (int n, int m) | |
| NRMat (const T &a, int n, int m) | |
| NRMat (const T *a, int n, int m) | |
| NRMat (const NRMat &rhs) | |
| NRMat & | operator= (const NRMat &rhs) |
| NRMat & | operator= (const T &a) |
| T * | operator[] (const int i) |
| const T * | operator[] (const int i) const |
| int | nrows () const |
| int | ncols () const |
| ~NRMat () | |
Protected Attributes | |
| Matrix | mymat |
| Matrix & | myref |
Private Types | |
| typedef matrix< T, rectangle< >, dense<>, row_major >::type | Matrix |
Private Attributes | |
| int | nn |
| int | mm |
| T ** | v |
| TNT::Matrix< T > | mymat |
| TNT::Matrix< T > & | myref |
| T ** | v |
|
|||||
|
Definition at line 127 of file nrutil_mtl.h. |
|
|||||||||
|
Reimplemented in NRMat< bool >. Definition at line 132 of file nrutil_mtl.h.
|
|
||||||||||||||||
|
Reimplemented in NRMat< bool >. Definition at line 133 of file nrutil_mtl.h.
|
|
||||||||||||||||||||
|
Definition at line 134 of file nrutil_mtl.h. 00134 : mymat(n,m), myref(mymat) { 00135 for (int i=0; i< n; i++) 00136 for (int j=0; j<m; j++) 00137 mymat[i][j] = a;}
|
|
||||||||||||||||||||
|
Definition at line 138 of file nrutil_mtl.h. 00138 : mymat(n,m), myref(mymat) { 00139 for (int i=0; i< n; i++) 00140 for (int j=0; j<m; j++) 00141 mymat[i][j] = *a++;}
|
|
||||||||||
|
|
|
||||||||||
|
Definition at line 143 of file nrutil_mtl.h. 00143 : 00144 mymat(rhs.myref.nrows(),rhs.myref.ncols()), myref(mymat) 00145 {copy(rhs.myref,myref);}
|
|
|||||||||
|
Definition at line 159 of file nrutil_mtl.h. 00159 {}
|
|
|||||||||
|
Reimplemented in NRMat< bool >. |
|
||||||||||||||||
|
Reimplemented in NRMat< bool >. |
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
Reimplemented in NRMat< bool >. Definition at line 108 of file nrutil_tnt.h.
|
|
||||||||||||||||
|
Reimplemented in NRMat< bool >. Definition at line 109 of file nrutil_tnt.h.
|
|
||||||||||||||||||||
|
Definition at line 110 of file nrutil_tnt.h.
|
|
||||||||||||||||||||
|
Definition at line 112 of file nrutil_tnt.h.
|
|
||||||||||
|
|
|
||||||||||
|
Definition at line 116 of file nrutil_tnt.h.
|
|
|||||||||
|
Definition at line 129 of file nrutil_tnt.h. 00129 {}
|
|
|||||||||
|
Reimplemented in NRMat< bool >. |
|
||||||||||||||||
|
Reimplemented in NRMat< bool >. |
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
Definition at line 126 of file nrutil_tnt.h. 00126 {return myref.num_cols();}
|
|
|||||||||
|
|
|
|||||||||
|
Definition at line 157 of file nrutil_mtl.h. Referenced by NR::gaussj(), and NRMat< int >::operator=(). 00157 {return myref.ncols();}
|
|
|||||||||
|
|
|
|||||||||
|
Definition at line 125 of file nrutil_tnt.h. 00125 {return myref.num_rows();}
|
|
|||||||||
|
|
|
|||||||||
|
Definition at line 156 of file nrutil_mtl.h. Referenced by NR::gaussj(), and NRMat< int >::operator=(). 00156 {return myref.nrows();}
|
|
|||||||||
|
Definition at line 158 of file nrutil_mtl.h. 00158 {return myref;}
|
|
|||||||||
|
Definition at line 127 of file nrutil_tnt.h. 00127 {return myref;}
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
Definition at line 120 of file nrutil_tnt.h. 00120 { mymat=rhs; return *this;}
|
|
||||||||||
|
Definition at line 118 of file nrutil_tnt.h.
|
|
||||||||||
|
Definition at line 254 of file nrutil_nr.h. References NRMat< T >::v. 00255 {
00256 for (int i=0; i< nn; i++)
00257 for (int j=0; j<mm; j++)
00258 v[i][j] = a;
00259 return *this;
00260 }
|
|
||||||||||
|
|
|
||||||||||
|
Definition at line 146 of file nrutil_mtl.h. 00146 {
00147 if (myref.nrows() != rhs.myref.nrows() && myref.ncols() !=
00148 rhs.myref.ncols()) {
00149 cerr << "assignment with incompatible matrix sizes\n";
00150 abort();
00151 }
00152 copy(rhs.myref,myref); return *this;
00153 }
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
Definition at line 122 of file nrutil_tnt.h. 00122 {return myref[i];}
|
|
||||||||||
|
|
|
||||||||||
|
Definition at line 263 of file nrutil_nr.h. References NRMat< T >::v. 00263 : pointer to row i
00264 {
00265 return v[i];
00266 }
|
|
||||||||||
|
Definition at line 154 of file nrutil_mtl.h. 00154 {return myref[i];}
|
|
|||||
|
Definition at line 67 of file nrutil_val.h. |
|
|||||
|
Definition at line 105 of file nrutil_tnt.h. |
|
|||||
|
Definition at line 129 of file nrutil_mtl.h. |
|
|||||
|
Definition at line 106 of file nrutil_tnt.h. |
|
|||||
|
Definition at line 130 of file nrutil_mtl.h. Referenced by NRMat< int >::NRMat(), and NRMat< int >::operator=(). |
|
|||||
|
Definition at line 66 of file nrutil_val.h. |
|
|||||
|
Definition at line 68 of file nrutil_val.h. |
|
|||||
|
Definition at line 163 of file nrutil_nr.h. Referenced by NRMat< T >::operator=(), and NRMat< T >::operator[](). |
1.3.9.1