44 #include "ConstrainedOptPack_MatrixIdentConcatStd.hpp"
45 #include "Teuchos_Assert.hpp"
47 namespace ConstrainedOptPack {
57 const VectorSpace::space_ptr_t& space_cols
58 ,
const VectorSpace::space_ptr_t& space_rows
67 space_cols.get() == NULL, std::invalid_argument
68 ,
"MatrixIdentConcatStd::initialize(...): Error, "
69 "space_cols.get() can not be NULL!" );
71 space_rows.get() == NULL, std::invalid_argument
72 ,
"MatrixIdentConcatStd::initialize(...): Error, "
73 "space_rows.get() can not be NULL!" );
75 D_ptr.
get() == NULL, std::invalid_argument
76 ,
"MatrixIdentConcatStd::initialize(...): Error, "
77 "D_ptr.get() can not be NULL!" );
80 D_rows = D_ptr->rows(),
81 D_cols = D_ptr->cols(),
84 rows = opD_rows + opD_cols;
90 D_rng_ = top_or_bottom == TOP ? Range1D(1,opD_rows) : Range1D(opD_cols+1,
rows);
91 I_rng_ = top_or_bottom == TOP ? Range1D(opD_rows+1,
rows) : Range1D(1,opD_cols);
96 namespace rcp = MemMngPack;
97 space_cols_ = Teuchos::null;
98 space_rows_ = Teuchos::null;
100 D_ptr_ = Teuchos::null;
102 D_rng_ = Range1D::Invalid;
103 I_rng_ = Range1D::Invalid;
158 void MatrixIdentConcatStd::assert_initialized()
const {
160 space_cols_.get() == NULL, std::logic_error
161 ,
"Error, the MatrixIdentConcatStd object has not been initialized!" );
const VectorSpace & space_cols() const
const MatrixOp & D() const
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
size_type rows(size_type rows, size_type cols, BLAS_Cpp::Transp _trans)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
MatrixOp & operator=(const MatrixOp &m)
The default just performs a shallow copy and just copies the underlying smart reference counted point...
const VectorSpace & space_rows() const
BLAS_Cpp::Transp D_trans() const
virtual void initialize(const VectorSpace::space_ptr_t &space_cols, const VectorSpace::space_ptr_t &space_rows, ETopBottom top_or_bottom, value_type alpha, const D_ptr_t &D_ptr, BLAS_Cpp::Transp D_trans)
Setup with a matrix object.
virtual const D_ptr_t & D_ptr() const
Return the smart reference counted point to the D matrix.
MatrixIdentConcatStd()
Constructs to uninitialized.
size_type cols(size_type rows, size_type cols, BLAS_Cpp::Transp _trans)
virtual void set_uninitialized()
Set the matrix to uninitialized.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)