44 #include "ConstrainedOptPack_MatrixIdentConcatStd.hpp" 45 #include "Teuchos_Assert.hpp" 66 TEUCHOS_TEST_FOR_EXCEPTION(
67 space_cols.get() == NULL, std::invalid_argument
68 ,
"MatrixIdentConcatStd::initialize(...): Error, " 69 "space_cols.get() can not be NULL!" );
70 TEUCHOS_TEST_FOR_EXCEPTION(
71 space_rows.get() == NULL, std::invalid_argument
72 ,
"MatrixIdentConcatStd::initialize(...): Error, " 73 "space_rows.get() can not be NULL!" );
74 TEUCHOS_TEST_FOR_EXCEPTION(
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);
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;
152 TEUCHOS_TEST_FOR_EXCEPT(
true);
158 void MatrixIdentConcatStd::assert_initialized()
const {
159 TEUCHOS_TEST_FOR_EXCEPTION(
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
size_type rows(size_type rows, size_type cols, BLAS_Cpp::Transp _trans)
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.
Teuchos::RCP< const MatrixOp > D_ptr_t
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.