1 | /* $Id: ClpCholeskyWssmp.hpp 1665 2011-01-04 17:55:54Z lou $ */ |
2 | // Copyright (C) 2003, International Business Machines |
3 | // Corporation and others. All Rights Reserved. |
4 | // This code is licensed under the terms of the Eclipse Public License (EPL). |
5 | |
6 | #ifndef ClpCholeskyWssmp_H |
7 | #define ClpCholeskyWssmp_H |
8 | |
9 | #include "ClpCholeskyBase.hpp" |
10 | class ClpMatrixBase; |
11 | class ClpCholeskyDense; |
12 | |
13 | |
14 | /** Wssmp class for Clp Cholesky factorization |
15 | |
16 | */ |
17 | class ClpCholeskyWssmp : public ClpCholeskyBase { |
18 | |
19 | public: |
20 | /**@name Virtual methods that the derived classes provides */ |
21 | //@{ |
22 | /** Orders rows and saves pointer to matrix.and model. |
23 | Returns non-zero if not enough memory */ |
24 | virtual int order(ClpInterior * model) override ; |
25 | /** Does Symbolic factorization given permutation. |
26 | This is called immediately after order. If user provides this then |
27 | user must provide factorize and solve. Otherwise the default factorization is used |
28 | returns non-zero if not enough memory */ |
29 | virtual int symbolic() override; |
30 | /** Factorize - filling in rowsDropped and returning number dropped. |
31 | If return code negative then out of memory */ |
32 | virtual int factorize(const double * diagonal, int * rowsDropped) override ; |
33 | /** Uses factorization to solve. */ |
34 | virtual void solve (double * region) override ; |
35 | //@} |
36 | |
37 | |
38 | /**@name Constructors, destructor */ |
39 | //@{ |
40 | /** Constructor which has dense columns activated. |
41 | Default is off. */ |
42 | ClpCholeskyWssmp(int denseThreshold = -1); |
43 | /** Destructor */ |
44 | virtual ~ClpCholeskyWssmp(); |
45 | // Copy |
46 | ClpCholeskyWssmp(const ClpCholeskyWssmp&); |
47 | // Assignment |
48 | ClpCholeskyWssmp& operator=(const ClpCholeskyWssmp&); |
49 | /// Clone |
50 | virtual ClpCholeskyBase * clone() const override ; |
51 | //@} |
52 | |
53 | |
54 | private: |
55 | /**@name Data members */ |
56 | //@{ |
57 | //@} |
58 | }; |
59 | |
60 | #endif |
61 | |