42 #ifndef GEN_PERM_MATRIX_SLICE_H
43 #define GEN_PERM_MATRIX_SLICE_H
47 namespace AbstractLinAlgPack {
160 ,
bool test_setup =
false
197 ,
bool test_setup =
false
349 ,std::ostringstream &omsg
401 #endif // GEN_PERM_MATRIX_SLICE_H
GenPermMatrixSlice()
Construct to an uninitialzied, unsized matrix.
RTOp_index_type index_type
GenPermMatrixSliceIteratorPack::EOrderedBy EOrderedBy
GenPermMatrixSlice & operator=(const GenPermMatrixSlice &)
not defined and not to be called
void initialize(index_type rows, index_type cols, EIdentityOrZero type)
Initialize an identity or zero permutation.
size_type rows(size_type rows, size_type cols, BLAS_Cpp::Transp _trans)
Return rows of a possible transposed matrix.
const_iterator end() const
Return the end of this->const_iterator_begin().
void bind(const GenPermMatrixSlice &gpms)
Bind the view of another GenPermMatrixSlice object.
void validate_not_identity() const
. One-based subregion index range class.
This is a full random access iterator for accessing row and colunmn indices.
static void validate_input_data(index_type rows, index_type cols, index_type nz, difference_type row_off, difference_type col_off, EOrderedBy ordered_by, const index_type row_i[], const index_type col_j[], std::ostringstream &omsg)
const GenPermMatrixSlice create_submatrix(const Range1D &rng, EOrderedBy ordered_by) const
Create a submatrix by row, by column.
const_iterator begin() const
Return a random access iterator for accessing which row and column that each nonzero 1...
const index_type * row_i_
ptrdiff_t difference_type
const index_type * col_j_
size_type cols(size_type rows, size_type cols, BLAS_Cpp::Transp _trans)
Return columns of a possible transposed matrix.
EOrderedBy ordered_by() const
index_type lookup_row_i(index_type col_j) const
Lookup the ith row index for the nonzero entry in the jth column if it exists.
void initialize_and_sort(index_type rows, index_type cols, index_type nz, difference_type row_off, difference_type col_off, EOrderedBy ordered_by, index_type row_i[], index_type col_j[], bool test_setup=false)
Initialize and sort.
index_type lookup_col_j(index_type row_i) const
Lookup the jth column index for the nonzero entry in the ith row if it exists.
Concrete matrix type to represent general permutation (mapping) matrices.
GenPermMatrixSliceIteratorPack::row_col_iterator< const index_type > const_iterator