Assert (column<n_block_cols(), ExcIndexRange (column, 0, n_block_cols()));
return blocks[row][column];
-};
+}
Assert (column<n_block_cols(), ExcIndexRange (column, 0, n_block_cols()));
return blocks[row][column];
-};
+}
BlockSparseMatrixEZ<Number>::m () const
{
return n_rows();
-};
+}
BlockSparseMatrixEZ<Number>::n () const
{
return n_cols();
-};
+}
block(row_index.first,col_index.first).set (row_index.second,
col_index.second,
value);
-};
+}
block(row_index.first,col_index.first).add (row_index.second,
col_index.second,
value);
-};
+}
template <typename Number>
block(row,col).vmult_add (dst.block(row),
src.block(col));
};
-};
+}
block(row,col).vmult_add (dst.block(row),
src.block(col));
};
-};
+}
block(row,col).Tvmult_add (dst.block(col),
src.block(row));
};
-};
+}
block(row,col).Tvmult_add (dst.block(col),
src.block(row));
};
-};
+}
#endif //__deal2__block_sparse_matrix_ez_h
:
row_indices (0),
column_indices (0)
-{};
+{}
:
row_indices (rows),
column_indices (cols)
-{};
+{}
for (unsigned int c=0; c<n_block_cols(); ++c)
block(r,c) = m.block(r,c);
return *this;
-};
+}
row_indices(m.row_indices),
column_indices(m.column_indices),
blocks(m.blocks)
-{};
+{}
row_indices.reinit(rows, 0);
column_indices.reinit(cols, 0);
blocks.reinit(rows, cols);
-};
+}
row_indices.reinit(0, 0);
column_indices.reinit(0, 0);
blocks.reinit(0, 0);
-};
+}
if (block(r,c).empty () == false)
return false;
return true;
-};
+}
// finally initialize the row
// indices with this array
column_indices.reinit (col_sizes);
-};
+}