else
{
(*this)*=s;
- VectorBase tmp = v;
- tmp *= a;
- this->add(tmp, true);
- tmp = w;
- tmp *= b;
- this->add(tmp, true);
+ {
+ VectorBase tmp = v;
+ tmp *= a;
+ this->add(tmp, true);
+ }
+ {
+ VectorBase tmp = w;
+ tmp *= b;
+ this->add(tmp, true);
+ }
}
}
else
{
(*this)*=s;
- VectorBase tmp = v;
- tmp *= a;
- this->add(tmp, true);
- tmp = w;
- tmp *= b;
- this->add(tmp, true);
- tmp = x;
- tmp *= c;
- this->add(tmp, true);
+ {
+ VectorBase tmp = v;
+ tmp *= a;
+ this->add(tmp, true);
+ }
+ {
+ VectorBase tmp = w;
+ tmp *= b;
+ this->add(tmp, true);
+ }
+ {
+ VectorBase tmp = x;
+ tmp *= c;
+ this->add(tmp, true);
+ }
}
}
// If we don't have the same map, copy.
if (vector->Map().SameAs(v.vector->Map())==false)
{
- *vector = *v.vector;
- *this *= a;
+ this->sadd(0., a, v);
}
else
{
// If we don't have the same map, copy.
if (vector->Map().SameAs(v.vector->Map())==false)
{
- *vector = *v.vector;
- sadd(a, b, w);
+ sadd(0., a, v, b, w);
}
else
{
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams