// @(#)root/quadp:$Id$
// Author: Eddy Offermann   May 2004

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

/*************************************************************************
 * Parts of this file are copied from the OOQP distribution and          *
 * are subject to the following license:                                 *
 *                                                                       *
 * COPYRIGHT 2001 UNIVERSITY OF CHICAGO                                  *
 *                                                                       *
 * The copyright holder hereby grants you royalty-free rights to use,    *
 * reproduce, prepare derivative works, and to redistribute this software*
 * to others, provided that any changes are clearly documented. This     *
 * software was authored by:                                             *
 *                                                                       *
 *   E. MICHAEL GERTZ      gertz@mcs.anl.gov                             *
 *   Mathematics and Computer Science Division                           *
 *   Argonne National Laboratory                                         *
 *   9700 S. Cass Avenue                                                 *
 *   Argonne, IL 60439-4844                                              *
 *                                                                       *
 *   STEPHEN J. WRIGHT     swright@cs.wisc.edu                           *
 *   Computer Sciences Department                                        *
 *   University of Wisconsin                                             *
 *   1210 West Dayton Street                                             *
 *   Madison, WI 53706   FAX: (608)262-9777                              *
 *                                                                       *
 * Any questions or comments may be directed to one of the authors.      *
 *                                                                       *
 * ARGONNE NATIONAL LABORATORY (ANL), WITH FACILITIES IN THE STATES OF   *
 * ILLINOIS AND IDAHO, IS OWNED BY THE UNITED STATES GOVERNMENT, AND     *
 * OPERATED BY THE UNIVERSITY OF CHICAGO UNDER PROVISION OF A CONTRACT   *
 * WITH THE DEPARTMENT OF ENERGY.                                        *
 *************************************************************************/

#ifndef ROOT_TQpProbDens
#define ROOT_TQpProbDens

#include "TQpProbBase.h"
#ifndef ROOT_TQpDataDens
#include "TQpDataDens.h"
#endif
#ifndef ROOT_TQpVars
#include "TQpVar.h"
#endif
#ifndef ROOT_TQpLinSolverDens
#include "TQpLinSolverDens.h"
#endif

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TQpProbDens                                                          //
//                                                                      //
// dense matrix problem formulation                                     //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

class TQpProbDens : public TQpProbBase
{

public:

   TQpProbDens() {}
   TQpProbDens(Int_t nx,Int_t my,Int_t mz);
   TQpProbDens(const TQpProbDens &another);

   virtual ~TQpProbDens() {}

   virtual TQpDataBase      *MakeData     (Double_t *c,
                                           Double_t *Q,
                                           Double_t *xlo,Bool_t *ixlo,
                                           Double_t *xup,Bool_t *ixup,
                                           Double_t *A,  Double_t *bA,
                                           Double_t *C,
                                           Double_t *clo,Bool_t *iclo,
                                           Double_t *cup,Bool_t *icup);
   virtual TQpDataBase      *MakeData     (TVectorD     &c,
                                           TMatrixDBase &Q_in,
                                           TVectorD     &xlo, TVectorD &ixlo,
                                           TVectorD     &xup, TVectorD &ixup,
                                           TMatrixDBase &A_in,TVectorD &bA,
                                           TMatrixDBase &C_in,
                                           TVectorD     &clo, TVectorD &iclo,
                                           TVectorD     &cup, TVectorD &icup);
   virtual TQpResidual      *MakeResiduals(const TQpDataBase *data);
   virtual TQpVar           *MakeVariables(const TQpDataBase *data);
   virtual TQpLinSolverBase *MakeLinSys   (const TQpDataBase *data);

   virtual void JoinRHS       (TVectorD &rhs_in,TVectorD &rhs1_in,TVectorD &rhs2_in,TVectorD &rhs3_in);
   virtual void SeparateVars  (TVectorD &x_in,TVectorD &y_in,TVectorD &z_in,TVectorD &vars_in);
           void MakeRandomData(TQpDataDens *&data,TQpVar *&soln,Int_t nnzQ,Int_t nnzA,Int_t nnzC);

   TQpProbDens &operator= (const TQpProbDens &source);

   ClassDef(TQpProbDens,1)                     // Qp dens problem formulation class
};
#endif
 TQpProbDens.h:1
 TQpProbDens.h:2
 TQpProbDens.h:3
 TQpProbDens.h:4
 TQpProbDens.h:5
 TQpProbDens.h:6
 TQpProbDens.h:7
 TQpProbDens.h:8
 TQpProbDens.h:9
 TQpProbDens.h:10
 TQpProbDens.h:11
 TQpProbDens.h:12
 TQpProbDens.h:13
 TQpProbDens.h:14
 TQpProbDens.h:15
 TQpProbDens.h:16
 TQpProbDens.h:17
 TQpProbDens.h:18
 TQpProbDens.h:19
 TQpProbDens.h:20
 TQpProbDens.h:21
 TQpProbDens.h:22
 TQpProbDens.h:23
 TQpProbDens.h:24
 TQpProbDens.h:25
 TQpProbDens.h:26
 TQpProbDens.h:27
 TQpProbDens.h:28
 TQpProbDens.h:29
 TQpProbDens.h:30
 TQpProbDens.h:31
 TQpProbDens.h:32
 TQpProbDens.h:33
 TQpProbDens.h:34
 TQpProbDens.h:35
 TQpProbDens.h:36
 TQpProbDens.h:37
 TQpProbDens.h:38
 TQpProbDens.h:39
 TQpProbDens.h:40
 TQpProbDens.h:41
 TQpProbDens.h:42
 TQpProbDens.h:43
 TQpProbDens.h:44
 TQpProbDens.h:45
 TQpProbDens.h:46
 TQpProbDens.h:47
 TQpProbDens.h:48
 TQpProbDens.h:49
 TQpProbDens.h:50
 TQpProbDens.h:51
 TQpProbDens.h:52
 TQpProbDens.h:53
 TQpProbDens.h:54
 TQpProbDens.h:55
 TQpProbDens.h:56
 TQpProbDens.h:57
 TQpProbDens.h:58
 TQpProbDens.h:59
 TQpProbDens.h:60
 TQpProbDens.h:61
 TQpProbDens.h:62
 TQpProbDens.h:63
 TQpProbDens.h:64
 TQpProbDens.h:65
 TQpProbDens.h:66
 TQpProbDens.h:67
 TQpProbDens.h:68
 TQpProbDens.h:69
 TQpProbDens.h:70
 TQpProbDens.h:71
 TQpProbDens.h:72
 TQpProbDens.h:73
 TQpProbDens.h:74
 TQpProbDens.h:75
 TQpProbDens.h:76
 TQpProbDens.h:77
 TQpProbDens.h:78
 TQpProbDens.h:79
 TQpProbDens.h:80
 TQpProbDens.h:81
 TQpProbDens.h:82
 TQpProbDens.h:83
 TQpProbDens.h:84
 TQpProbDens.h:85
 TQpProbDens.h:86
 TQpProbDens.h:87
 TQpProbDens.h:88
 TQpProbDens.h:89
 TQpProbDens.h:90
 TQpProbDens.h:91
 TQpProbDens.h:92
 TQpProbDens.h:93
 TQpProbDens.h:94
 TQpProbDens.h:95
 TQpProbDens.h:96
 TQpProbDens.h:97
 TQpProbDens.h:98
 TQpProbDens.h:99
 TQpProbDens.h:100
 TQpProbDens.h:101
 TQpProbDens.h:102
 TQpProbDens.h:103
 TQpProbDens.h:104