| 90 | class TripletSparseMatrix; |
| 91 | |
| 92 | class AutoDiffMatrix { |
| 93 | adouble* a; |
| 94 | int n; |
| 95 | int m; |
| 96 | public: |
| 97 | // Constructor |
| 98 | AutoDiffMatrix( int n, int m); |
| 99 | AutoDiffMatrix( int n ); |
| 100 | AutoDiffMatrix(); |
| 101 | // Destructor |
| 102 | ~AutoDiffMatrix(); |
| 103 | adouble elem(int i, int j) const; |
| 104 | adouble operator()(int i, int j) const; |
| 105 | adouble operator()(int i) const; |
| 106 | adouble& elem(int i, int j); |
| 107 | adouble& operator()(int i, int j); |
| 108 | adouble& operator()(int i); |
| 109 | int rows() const { return n;} |
| 110 | int cols() const { return m;} |
| 111 | adouble* GetPr() { return a;} |
| 112 | adouble* GetConstPr() const { return a;} |
| 113 | void Print(const char* text) const; |
| 114 | void resize(int nn, int mm); |
| 115 | void setZero(); |
| 116 | void setOne(); |
| 117 | |
| 118 | }; |
| 119 | |
| 120 | |
| 121 | class dual_str { |
nothing calls this directly
no outgoing calls
no test coverage detected