85 _matrix->add(beginning_index, beginning_index + 1, 1);
86 _matrix->set(beginning_index + 1, beginning_index, 1);
89 LIBMESH_ASSERT_NUMBERS_EQUAL(0, (*
_matrix)(beginning_index, beginning_index + 1),
_tolerance);
90 LIBMESH_ASSERT_NUMBERS_EQUAL(0, (*
_matrix)(beginning_index + 1, beginning_index),
_tolerance);
100 CPPUNIT_ASSERT(!
_matrix->closed());
103 CPPUNIT_ASSERT(
_matrix->closed());
123 CPPUNIT_ASSERT(!
_matrix->closed());
126 CPPUNIT_ASSERT(
_matrix->closed());
138 std::iota(rows.begin(), rows.end(), beginning_index);
146 ++local_index, ++global_index)
147 dense(local_index, local_index) = global_index;
152 _matrix->add_matrix(dense, rows, rows);
164 diagonal->init(
_matrix->diagonal());
166 _matrix->get_diagonal(*diagonal);
173 copy = std::move(*diagonal);
176 _matrix->add_matrix(dense, rows);
191 LIBMESH_ASSERT_NUMBERS_EQUAL(i, copy(i, i),
_tolerance);
processor_id_type rank() const
Provides a uniform interface to vector storage schemes for different linear algebra libraries...
void iota(ForwardIter first, ForwardIter last, T value)
Utility::iota was created back when std::iota was just an SGI STL extension.
processor_id_type size() const
numeric_index_type _global_size
dof_id_type numeric_index_type
std::unique_ptr< DiagonalMatrix< Number > > _matrix
Diagonal matrix class whose underlying storage is a vector.
Parallel::Communicator * _comm
numeric_index_type _local_size