* back to an uncompressed state.
*/
void
- add(const size_type i, const size_type j, const TrilinosScalar value);
+ add(const size_type i, const size_type j, const Number value);
/**
* Add an array of values given by <tt>values</tt> in the given global
* back to an uncompressed state.
*/
void
- add(const size_type row,
- const size_type n_cols,
- const size_type *col_indices,
- const TrilinosScalar *values,
- const bool elide_zero_values = true,
- const bool col_indices_are_sorted = false);
+ add(const size_type row,
+ const size_type n_cols,
+ const size_type *col_indices,
+ const Number *values,
+ const bool elide_zero_values = true,
+ const bool col_indices_are_sorted = false);
/**
* Set the element (<i>i,j</i>) to @p value.
template <typename Number, typename MemorySpace>
inline void
- SparseMatrix<Number, MemorySpace>::add(const size_type i,
- const size_type j,
- const TrilinosScalar value)
+ SparseMatrix<Number, MemorySpace>::add(const size_type i,
+ const size_type j,
+ const Number value)
{
add(i, 1, &j, &value, false);
}
template <typename Number, typename MemorySpace>
void
SparseMatrix<Number, MemorySpace>::add(
- const size_type row,
- const size_type n_cols,
- const size_type *col_indices,
- const TrilinosScalar *values,
- const bool elide_zero_values,
+ const size_type row,
+ const size_type n_cols,
+ const size_type *col_indices,
+ const Number *values,
+ const bool elide_zero_values,
const bool /*col_indices_are_sorted*/)
{
AssertIndexRange(row, this->m());
* stored in @p values to the vector components specified by @p indices.
*/
void
- add(const std::vector<size_type> &indices,
- const std::vector<TrilinosScalar> &values);
+ add(const std::vector<size_type> &indices,
+ const std::vector<Number> &values);
/**
template <typename Number, typename MemorySpace>
inline void
- Vector<Number, MemorySpace>::add(const std::vector<size_type> &indices,
- const std::vector<TrilinosScalar> &values)
+ Vector<Number, MemorySpace>::add(const std::vector<size_type> &indices,
+ const std::vector<Number> &values)
{
// if we have ghost values, do not allow
// writing to this vector at all.