ClpLsqr.hpp
Go to the documentation of this file.
1 /* $Id: ClpLsqr.hpp 1525 2010-02-26 17:27:59Z mjs $ */
2 // Copyright (C) 2003, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 #ifndef ClpLsqr_H_
5 #define ClpLsqr_H_
6 
7 #include "CoinDenseVector.hpp"
8 
9 #include "ClpInterior.hpp"
10 
11 
74 class ClpLsqr {
75 private:
78 
79 
80 public:
83 
84  int nrows_;
86  int ncols_;
90  double *diag1_;
92  double diag2_;
94 
97  ClpLsqr();
98 
100  ClpLsqr(ClpInterior *model);
102  ClpLsqr(const ClpLsqr &);
104  ClpLsqr & operator=(const ClpLsqr & rhs);
106  ~ClpLsqr();
108 
111 
112  bool setParam(char *parmName, int parmValue);
114  void do_lsqr( CoinDenseVector<double> &b,
115  double damp, double atol, double btol, double conlim, int itnlim,
116  bool show, Info info, CoinDenseVector<double> &x , int *istop,
117  int *itn, Outfo *outfo, bool precon, CoinDenseVector<double> &Pr );
119  void matVecMult( int, CoinDenseVector<double> *, CoinDenseVector<double> *);
120 
121  void matVecMult( int, CoinDenseVector<double> &, CoinDenseVector<double> &);
123  void borrowDiag1(double * array) {
124  diag1_ = array;
125  };
127 };
128 #endif
129 
130 
131 
132