VectorBase &
VectorBase::operator *= (const TrilinosScalar a)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
-
Assert (numbers::is_finite(a), ExcNumberNotFinite());
const int ierr = vector->Scale(a);
VectorBase &
VectorBase::operator /= (const TrilinosScalar a)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
-
Assert (numbers::is_finite(a), ExcNumberNotFinite());
const TrilinosScalar factor = 1./a;
VectorBase &
VectorBase::operator += (const VectorBase &v)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (size() == v.size(),
ExcDimensionMismatch(size(), v.size()));
Assert (vector->Map().SameAs(v.vector->Map()),
VectorBase &
VectorBase::operator -= (const VectorBase &v)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (size() == v.size(),
ExcDimensionMismatch(size(), v.size()));
Assert (vector->Map().SameAs(v.vector->Map()),
void
VectorBase::add (const TrilinosScalar s)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
-
Assert (numbers::is_finite(s), ExcNumberNotFinite());
unsigned int n_local = local_size();
VectorBase::add (const TrilinosScalar a,
const VectorBase &v)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (size() == v.size(),
ExcDimensionMismatch(size(), v.size()));
Assert (vector->Map().SameAs(v.vector->Map()),
const TrilinosScalar b,
const VectorBase &w)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (size() == v.size(),
ExcDimensionMismatch(size(), v.size()));
Assert (size() == w.size(),
VectorBase::sadd (const TrilinosScalar s,
const VectorBase &v)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (size() == v.size(),
ExcDimensionMismatch(size(), v.size()));
Assert (vector->Map().SameAs(v.vector->Map()),
const TrilinosScalar a,
const VectorBase &v)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (size() == v.size(),
ExcDimensionMismatch(size(), v.size()));
Assert (vector->Map().SameAs(v.vector->Map()),
const TrilinosScalar b,
const VectorBase &w)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (size() == v.size(),
ExcDimensionMismatch(size(), v.size()));
Assert (size() == w.size(),
const TrilinosScalar c,
const VectorBase &x)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (size() == v.size(),
ExcDimensionMismatch(size(), v.size()));
Assert (size() == w.size(),
void
VectorBase::scale (const VectorBase &factors)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (size() == factors.size(),
ExcDimensionMismatch(size(), factors.size()));
Assert (vector->Map().SameAs(factors.vector->Map()),
VectorBase::equ (const TrilinosScalar a,
const VectorBase &v)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (numbers::is_finite(a), ExcNumberNotFinite());
// If we don't have the same map, copy.
const TrilinosScalar b,
const VectorBase &w)
{
- // if we have ghost values, do not allow
- // writing to this vector at all.
- Assert (!has_ghost_elements(), ExcGhostsPresent());
Assert (v.size() == w.size(),
ExcDimensionMismatch (v.size(), w.size()));