1 # ifndef CPPAD_UTILITY_SPARSE_RCV_HPP
2 # define CPPAD_UTILITY_SPARSE_RCV_HPP
211 template <
class SizeVector,
class ValueVector>
243 "The index k is not less than nnz in sparse_rcv::set"
248 size_t nr(
void)
const
251 size_t nc(
void)
const
257 const SizeVector&
row(
void)
const
260 const SizeVector&
col(
void)
const
263 const ValueVector&
val(
void)
const
#define CPPAD_ASSERT_KNOWN(exp, msg)
Check that exp is true, if not print msg and terminate execution.
SizeVector col_major(void) const
column-major indices
sparse_rc< SizeVector > pattern_
sparsity pattern
void set(size_t k, const value_type &v)
size_t nnz(void) const
number of possibly non-zero elements in matrix
ValueVector::value_type value_type
value_type
const SizeVector & col(void) const
column indices
size_t nc(void) const
number of columns in matrix
Sparse matrices with elements of type Scalar.
A Matrix sparsity pattern class.
size_t nr(void) const
number of rows in matrix
sparsity pattern for a matrix with indices of type size_t
SizeVector row_major(void) const
row-major order
sparse_rcv(const sparse_rc< SizeVector > &pattern)
constructor
ValueVector val_
val_[k] is the value for the k-th possibly non-zero entry in the matrix
sparse_rcv(void)
default constructor
void operator=(const sparse_rcv &matrix)
assignment
const SizeVector & row(void) const
row indices
const ValueVector & val(void) const
value for possibly non-zero elements