Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:22

0001 // @(#)root/quadp:$Id$
0002 // Author: Eddy Offermann   May 2004
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 /*************************************************************************
0013  * Parts of this file are copied from the OOQP distribution and          *
0014  * are subject to the following license:                                 *
0015  *                                                                       *
0016  * COPYRIGHT 2001 UNIVERSITY OF CHICAGO                                  *
0017  *                                                                       *
0018  * The copyright holder hereby grants you royalty-free rights to use,    *
0019  * reproduce, prepare derivative works, and to redistribute this software*
0020  * to others, provided that any changes are clearly documented. This     *
0021  * software was authored by:                                             *
0022  *                                                                       *
0023  *   E. MICHAEL GERTZ      gertz@mcs.anl.gov                             *
0024  *   Mathematics and Computer Science Division                           *
0025  *   Argonne National Laboratory                                         *
0026  *   9700 S. Cass Avenue                                                 *
0027  *   Argonne, IL 60439-4844                                              *
0028  *                                                                       *
0029  *   STEPHEN J. WRIGHT     swright@cs.wisc.edu                           *
0030  *   Computer Sciences Department                                        *
0031  *   University of Wisconsin                                             *
0032  *   1210 West Dayton Street                                             *
0033  *   Madison, WI 53706   FAX: (608)262-9777                              *
0034  *                                                                       *
0035  * Any questions or comments may be directed to one of the authors.      *
0036  *                                                                       *
0037  * ARGONNE NATIONAL LABORATORY (ANL), WITH FACILITIES IN THE STATES OF   *
0038  * ILLINOIS AND IDAHO, IS OWNED BY THE UNITED STATES GOVERNMENT, AND     *
0039  * OPERATED BY THE UNIVERSITY OF CHICAGO UNDER PROVISION OF A CONTRACT   *
0040  * WITH THE DEPARTMENT OF ENERGY.                                        *
0041  *************************************************************************/
0042 
0043 #ifndef ROOT_TQpProbDens
0044 #define ROOT_TQpProbDens
0045 
0046 #include "TQpProbBase.h"
0047 #include "TQpDataDens.h"
0048 #include "TQpVar.h"
0049 
0050 //////////////////////////////////////////////////////////////////////////
0051 //                                                                      //
0052 // TQpProbDens                                                          //
0053 //                                                                      //
0054 // dense matrix problem formulation                                     //
0055 //                                                                      //
0056 //////////////////////////////////////////////////////////////////////////
0057 
0058 class TQpLinSolverBase;
0059 
0060 class TQpProbDens : public TQpProbBase
0061 {
0062 
0063 public:
0064 
0065    TQpProbDens() {}
0066    TQpProbDens(Int_t nx,Int_t my,Int_t mz);
0067    TQpProbDens(const TQpProbDens &another);
0068 
0069    ~TQpProbDens() override {}
0070 
0071    virtual TQpDataBase      *MakeData     (Double_t *c,
0072                                            Double_t *Q,
0073                                            Double_t *xlo,Bool_t *ixlo,
0074                                            Double_t *xup,Bool_t *ixup,
0075                                            Double_t *A,  Double_t *bA,
0076                                            Double_t *C,
0077                                            Double_t *clo,Bool_t *iclo,
0078                                            Double_t *cup,Bool_t *icup);
0079    TQpDataBase      *MakeData     (TVectorD     &c,
0080                                            TMatrixDBase &Q_in,
0081                                            TVectorD     &xlo, TVectorD &ixlo,
0082                                            TVectorD     &xup, TVectorD &ixup,
0083                                            TMatrixDBase &A_in,TVectorD &bA,
0084                                            TMatrixDBase &C_in,
0085                                            TVectorD     &clo, TVectorD &iclo,
0086                                            TVectorD     &cup, TVectorD &icup) override;
0087    TQpResidual      *MakeResiduals(const TQpDataBase *data) override;
0088    TQpVar           *MakeVariables(const TQpDataBase *data) override;
0089    TQpLinSolverBase *MakeLinSys   (const TQpDataBase *data) override;
0090 
0091    void JoinRHS       (TVectorD &rhs_in,TVectorD &rhs1_in,TVectorD &rhs2_in,TVectorD &rhs3_in) override;
0092    void SeparateVars  (TVectorD &x_in,TVectorD &y_in,TVectorD &z_in,TVectorD &vars_in) override;
0093            void MakeRandomData(TQpDataDens *&data,TQpVar *&soln,Int_t nnzQ,Int_t nnzA,Int_t nnzC);
0094 
0095    TQpProbDens &operator= (const TQpProbDens &source);
0096 
0097    ClassDefOverride(TQpProbDens,1)                     // Qp dens problem formulation class
0098 };
0099 #endif