42 #ifndef MATRIX_SPARSE_COOR_SERIAL_H
43 #define MATRIX_SPARSE_COOR_SERIAL_H
51 namespace AbstractLinAlgPack {
177 ,
bool check_input =
false
234 std::ostream&
output(std::ostream&
out)
const;
396 #endif // MATRIX_SPARSE_COOR_SERIAL_H
void reset_to_load_values()
Reinitialize internal counter to load new nonzero values.
Abstract interface for immutable, finite dimensional, coordinate vectors {abstract}.
void commit_load_nonzeros_buffers(size_type nz_commit, value_type **val, index_type **row_i, index_type **col_j)
RTOp_index_type index_type
ReleaseValRowColArrays & operator=(const ReleaseValRowColArrays &)
Mix-in interface for loading nonzero elements into a sparse matrix data structure.
void finish_construction(bool test_setup)
void release_ownership()
Release ownership of memory.
Coordinate matrix subclass.
RTOp_value_type value_type
release_resource_ptr_t release_resource_
Teuchos::RCP< MemMngPack::ReleaseResource > release_resource_ptr_t
Subclass to delete dynamically allocated memory with delete[].
const release_resource_ptr_t & release_resource() const
std::ostream & output(std::ostream &out) const
const VectorSpace & space_rows() const
VectorSpaceSerial space_rows_
void Vp_StMtV(VectorMutable *vs_lhs, value_type alpha, BLAS_Cpp::Transp trans_rhs1, const Vector &v_rhs2, value_type beta) const
. One-based subregion index range class.
void set_buffers(size_type max_nz, value_type *val, index_type *row_i, index_type *col_j, const release_resource_ptr_t &release_resource, size_type rows=0, size_type cols=0, size_type nz=0, bool check_input=false)
Give memory to use to store nonzero elements.
RTOp_index_type size_type
Abstract interface for objects that represent a space for mutable coordinate vectors.
void coor_extract_nonzeros(EElementUniqueness element_uniqueness, const index_type inv_row_perm[], const index_type inv_col_perm[], const Range1D &row_rng, const Range1D &col_rng, index_type dl, index_type du, value_type alpha, const index_type len_Aval, value_type Aval[], const index_type len_Aij, index_type Arow[], index_type Acol[], const index_type row_offset, const index_type col_offset) const
Abstract interface for releasing an object when it is not needed anymore {abstract}.
const LAPACK_C_Decl::f_int & M
void get_load_nonzeros_buffers(size_type max_nz_load, value_type **val, index_type **row_i, index_type **col_j)
ReleaseValRowColArrays(value_type *val, index_type *row_i, index_type *col_j)
Gives pointers to buffers to delete[].
~ReleaseValRowColArrays()
Base class for all matrices that support basic matrix operations.
bool resource_is_bound() const
Overridden from ReleaseResource.
size_type reload_val_only_nz_last_
Abstract interface for mutable coordinate vectors {abstract}.
void make_storage_unique()
VectorSpaceSerial space_cols_
void set_uninitialized()
Release all owned memory and make uninitialized.
Subclass for serial vector space objects that create VectorMutableDense vector and MultiVectorMutable...
EAssumeElementUniqueness element_uniqueness_
MatrixSparseCOORSerial()
Let this allocate its own memory.
MatrixOp & operator=(const MatrixOp &M)
const VectorSpace & space_cols() const
void reinitialize(size_type rows, size_type cols, size_type max_nz, EAssumeElementUniqueness element_uniqueness)
static release_resource_ptr_t release_resource_null_
index_type count_nonzeros(EElementUniqueness element_uniqueness, const index_type inv_row_perm[], const index_type inv_col_perm[], const Range1D &row_rng, const Range1D &col_rng, index_type dl, index_type du) const