|
ConstrainedOptPack: C++ Tools for Constrained (and Unconstrained) Optimization Version of the Day
|
00001 // @HEADER 00002 // *********************************************************************** 00003 // 00004 // Moocho: Multi-functional Object-Oriented arCHitecture for Optimization 00005 // Copyright (2003) Sandia Corporation 00006 // 00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive 00008 // license for use of this work by or on behalf of the U.S. Government. 00009 // 00010 // This library is free software; you can redistribute it and/or modify 00011 // it under the terms of the GNU Lesser General Public License as 00012 // published by the Free Software Foundation; either version 2.1 of the 00013 // License, or (at your option) any later version. 00014 // 00015 // This library is distributed in the hope that it will be useful, but 00016 // WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00023 // USA 00024 // Questions? Contact Roscoe A. Bartlett (rabartl@sandia.gov) 00025 // 00026 // *********************************************************************** 00027 // @HEADER 00028 00029 #ifndef MATRIX_IDENT_CONCAT_STD_H 00030 #define MATRIX_IDENT_CONCAT_STD_H 00031 00032 #include "ConstrainedOptPack_MatrixIdentConcat.hpp" 00033 #include "AbstractLinAlgPack_VectorSpace.hpp" 00034 #include "Teuchos_RCP.hpp" 00035 00036 namespace ConstrainedOptPack { 00037 00054 class MatrixIdentConcatStd : public MatrixIdentConcat { 00055 public: 00056 00060 enum ETopBottom { TOP, BOTTOM }; 00062 typedef Teuchos::RCP<const MatrixOp> D_ptr_t; 00064 00069 MatrixIdentConcatStd(); 00105 virtual void initialize( 00106 const VectorSpace::space_ptr_t& space_cols 00107 ,const VectorSpace::space_ptr_t& space_rows 00108 ,ETopBottom top_or_bottom 00109 ,value_type alpha 00110 ,const D_ptr_t &D_ptr 00111 ,BLAS_Cpp::Transp D_trans 00112 ); 00130 virtual void set_uninitialized(); 00136 virtual const D_ptr_t& D_ptr() const; 00138 00142 Range1D D_rng() const; 00144 Range1D I_rng() const; 00146 value_type alpha() const; 00148 const MatrixOp& D() const; 00150 BLAS_Cpp::Transp D_trans() const; 00152 00156 const VectorSpace& space_cols() const; 00158 const VectorSpace& space_rows() const; 00163 MatrixOp& operator=(const MatrixOp& m); 00165 00166 private: 00167 00168 #ifdef DOXYGEN_COMPILE 00169 AbstractLinAlgPack::VectorSpace *space_cols; 00170 AbstractLinAlgPack::VectorSpace *space_rows; 00171 AbstractLinAlgPack::MatrixOp *D; 00172 RangePack::Range1D D_rng; 00173 RangePack::Range1D I_rng; 00174 #else 00175 VectorSpace::space_ptr_t space_cols_; 00176 VectorSpace::space_ptr_t space_rows_; 00177 D_ptr_t D_ptr_; 00178 Range1D D_rng_; 00179 Range1D I_rng_; 00180 #endif 00181 value_type alpha_; 00182 BLAS_Cpp::Transp D_trans_; 00183 00184 // 00185 void assert_initialized() const; 00186 00187 }; // end class MatrixIndentConcatStd 00188 00189 } // end namespace ConstrainedOptPack 00190 00191 #endif // MATRIX_IDENT_CONCAT_STD_H
1.7.4