54 namespace AbstractLinAlgPack {
80 namespace rcp = MemMngPack;
81 namespace rmp = MemMngPack;
88 new rmp::ReleaseResource_ref_count_ptr<DMatrix>(
159 namespace rcp = MemMngPack;
169 namespace rcp = MemMngPack;
179 namespace rcp = MemMngPack;
189 namespace rcp = MemMngPack;
258 sym_lhs == NULL, std::invalid_argument
259 ,
"MultiVectorMutableDense::syrk(...) : Error!" );
316 ,
const size_t num_multi_vecs,
const MultiVector** multi_vecs
318 ,RTOpPack::ReductTarget* reduct_objs[]
324 apply_by, primary_op, num_multi_vecs, multi_vecs, num_targ_multi_vecs, targ_multi_vecs
326 ,primary_first_ele, primary_sub_dim, primary_global_offset, secondary_first_ele, secondary_sub_dim
332 ,
const size_t num_multi_vecs,
const MultiVector** multi_vecs
334 ,RTOpPack::ReductTarget *reduct_obj
340 apply_by, primary_op, secondary_op, num_multi_vecs, multi_vecs, num_targ_multi_vecs, targ_multi_vecs
342 ,primary_first_ele, primary_sub_dim, primary_global_offset, secondary_first_ele, secondary_sub_dim
void apply_op(EApplyBy apply_by, const RTOpPack::RTOp &primary_op, const size_t num_multi_vecs, const MultiVector **multi_vecs, const size_t num_targ_multi_vecs, MultiVectorMutable **targ_multi_vecs, RTOpPack::ReductTarget *reduct_objs[], const index_type primary_first_ele, const index_type primary_sub_dim, const index_type primary_global_offset, const index_type secondary_first_ele, const index_type secondary_sub_dim) const
std::ostream & output(std::ostream &out) const
DVector "Adaptor" subclass for DenseLinAlgPack::DVectorSlice or DenseLinAlgPack::DVector objects...
vec_mut_ptr_t diag(int k)
release_resource_ptr_t gms_release_
DVectorSlice row(DMatrixSlice &gms, BLAS_Cpp::Transp trans, size_type i)
void initialize(const size_type rows, const size_type cols)
Call this->initialize(v,v_release) with an allocated DenseLinAlgPack::DVector object.
void Vp_StMtV(DVectorSlice *vs_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs1, const DVectorSlice &vs_rhs2, value_type beta) const
RTOp_index_type index_type
std::ostream & output(std::ostream &out) const
void free_gms_view(const DMatrixSlice *gms_view) const
void assign(DMatrix *gm_lhs, value_type alpha)
gm_lhs = alpha (elementwise)
multi_vec_mut_ptr_t mv_sub_view(const Range1D &row_rng, const Range1D &col_rng)
void Mt_S(value_type alpha)
RTOp_value_type value_type
bool Mp_StM(MatrixOp *mwo_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs) const
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
BLAS_Cpp::Transp gms_trans() const
Return if underlying matrix is being viewed as the transpose or non-transposed.
size_type rows(size_type rows, size_type cols, BLAS_Cpp::Transp _trans)
Return rows of a possible transposed matrix.
Abstract interface that allows the extraction of a non-const DenseLinAlgPack::DMatrixSliceSym view of...
access_by_t access_by() const
void syrk(BLAS_Cpp::Transp trans, value_type alpha, const DMatrixSlice &gms_rhs, value_type beta, DMatrixSliceSym *sym_lhs)
bool Mp_StMtM(MatrixOp *mwo_lhs, value_type alpha, const MatrixOp &mwo_rhs1, BLAS_Cpp::Transp trans_rhs1, BLAS_Cpp::Transp trans_rhs2, value_type beta) const
Interface adding operations specific for a symmetric matrix {abstract}.
Teuchos::RCP< const Vector > vec_ptr_t
DMatrixSlice set_gms()
Return the non-const dense matrix.
vec_mut_ptr_t row(index_type i)
bool Mp_StMtM(MatrixOp *mwo_lhs, value_type alpha, const MatrixOp &mwo_rhs1, BLAS_Cpp::Transp trans_rhs1, BLAS_Cpp::Transp trans_rhs2, value_type beta) const
Provides a specialized implementation for mwo_rhs1 of type MatrixSymDiag.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
const DMatrixSlice get_gms() const
Return a const dense matrix.
. One-based subregion index range class.
RTOpT< RTOp_value_type > RTOp
RTOp_index_type size_type
Helper class type that simplifies the usage of the MatrixSymOpGetGMSSymMutable interface for clients...
const DMatrixSlice get_gms_view() const
void Mt_S(DMatrixSlice *gms_lhs, value_type alpha)
gms_lhs *= alpha (BLAS xSCAL)
bool Mp_StM(MatrixOp *mwo_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs) const
virtual void Mp_StMtM(DMatrixSlice *gms_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs1, const DMatrixSlice &gms_rhs2, BLAS_Cpp::Transp trans_rhs2, value_type beta) const
gms_lhs = alpha * op(M_rhs1) * op(gms_rhs2) + beta * gms_lhs (right) (xGEMM)
vec_mut_ptr_t col(index_type j)
void commit_gms_view(DMatrixSlice *gms_view)
void Vp_StMtV(VectorMutable *v_lhs, value_type alpha, const MatrixOp &M_rhs1, BLAS_Cpp::Transp trans_rhs1, const Vector &v_rhs2, value_type beta=1.0)
v_lhs = alpha * op(M_rhs1) * v_rhs2 + beta * v_lhs (BLAS xGEMV)
DVectorSlice col(DMatrixSlice &gms, BLAS_Cpp::Transp trans, size_type j)
Transp trans_trans(Transp _trans1, Transp _trans2)
Return the transpose of the transpose argument.
BLAS_Cpp::Transp gms_trans_
Helper class type that simplifies the usage of the MatrixOpGetGMS interface for clients.
Base class for all matrices that support basic matrix operations.
Interface for a collection of non-mutable vectors (multi-vector, matrix).
MultiVectorMutableDense(const size_type rows=0, const size_type cols=0)
Calls this->initialize(rows,cols).
MatrixOp & operator=(const MatrixOp &mwo_rhs)
Interface for a collection of mutable vectors (multi-vector, matrix).
DVectorSlice diag(difference_type k=0)
void Vp_StMtV(DVectorSlice *vs_lhs, value_type alpha, const DMatrixSlice &gms_rhs1, BLAS_Cpp::Transp trans_rhs1, const DVectorSlice &vs_rhs2, value_type beta=1.0)
vs_lhs = alpha * op(gms_rhs1) * vs_rhs2 + beta * vs_lhs (BLAS xGEMV)
friend void apply_op(EApplyBy apply_by, const RTOpPack::RTOp &primary_op, const size_t num_multi_vecs, const MultiVector *multi_vecs[], const size_t num_targ_multi_vecs, MultiVectorMutable *targ_multi_vecs[], RTOpPack::ReductTarget *reduct_objs[], const index_type primary_first_ele, const index_type primary_sub_dim, const index_type primary_global_offset, const index_type secondary_first_ele, const index_type secondary_sub_dim)
bool syrk(BLAS_Cpp::Transp M_trans, value_type alpha, value_type beta, MatrixSymOp *sym_lhs) const
DenseLinAlgPack::DMatrix DMatrix
size_type cols(size_type rows, size_type cols, BLAS_Cpp::Transp _trans)
Return columns of a possible transposed matrix.
void bind(DMatrixSlice gms)
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)
Teuchos::RCP< VectorMutable > vec_mut_ptr_t
const release_resource_ptr_t & gms_release() const
Return a RCP<> pointer to the object that will release the associated resource.