MCPcopy Create free account
hub / github.com/PSOPT/psopt / AutoDiffMatrix

Class AutoDiffMatrix

include/psopt.h:92–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90class TripletSparseMatrix;
91
92class 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
121class dual_str {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected