*/
SparseMatrix (const MPI_Comm &communicator,
const CompressedSparsityPattern &sparsity_pattern,
- const std::vector<unsigned int> local_rows_per_process,
- const std::vector<unsigned int> local_columns_per_process,
+ const std::vector<unsigned int> &local_rows_per_process,
+ const std::vector<unsigned int> &local_columns_per_process,
const unsigned int this_process,
const bool preset_nonzero_locations = false);
*/
void reinit (const MPI_Comm &communicator,
const CompressedSparsityPattern &sparsity_pattern,
- const std::vector<unsigned int> local_rows_per_process,
- const std::vector<unsigned int> local_columns_per_process,
+ const std::vector<unsigned int> &local_rows_per_process,
+ const std::vector<unsigned int> &local_columns_per_process,
const unsigned int this_process,
const bool preset_nonzero_locations = false);
* Same as previous functions.
*/
void do_reinit (const CompressedSparsityPattern &sparsity_pattern,
- const std::vector<unsigned int> local_rows_per_process,
- const std::vector<unsigned int> local_columns_per_process,
+ const std::vector<unsigned int> &local_rows_per_process,
+ const std::vector<unsigned int> &local_columns_per_process,
const unsigned int this_process,
const bool preset_nonzero_locations);
};
SparseMatrix::
SparseMatrix (const MPI_Comm &communicator,
const CompressedSparsityPattern &sparsity_pattern,
- const std::vector<unsigned int> local_rows_per_process,
- const std::vector<unsigned int> local_columns_per_process,
+ const std::vector<unsigned int> &local_rows_per_process,
+ const std::vector<unsigned int> &local_columns_per_process,
const unsigned int this_process,
const bool preset_nonzero_locations)
:
SparseMatrix::
reinit (const MPI_Comm &communicator,
const CompressedSparsityPattern &sparsity_pattern,
- const std::vector<unsigned int> local_rows_per_process,
- const std::vector<unsigned int> local_columns_per_process,
+ const std::vector<unsigned int> &local_rows_per_process,
+ const std::vector<unsigned int> &local_columns_per_process,
const unsigned int this_process,
const bool preset_nonzero_locations)
{
void
SparseMatrix::
do_reinit (const CompressedSparsityPattern &sparsity_pattern,
- const std::vector<unsigned int> local_rows_per_process,
- const std::vector<unsigned int> local_columns_per_process,
+ const std::vector<unsigned int> &local_rows_per_process,
+ const std::vector<unsigned int> &local_columns_per_process,
const unsigned int this_process,
const bool preset_nonzero_locations)
{