the <code>cell_normal_vector</code> functions were replaced by
<code>normal_vector</code> ones. In all cases, the new functions
have been around for a while.
+- Vector::scale.
<!-- ----------- GENERAL IMPROVEMENTS ----------------- -->
// ---------------------------------------------------------------------
//
-// Copyright (C) 2000 - 2013 by the deal.II authors
+// Copyright (C) 2000 - 2013, 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
double length = x.l2_norm ();
double old_length = 0.;
- x.scale(1./length);
+ x *= 1./length;
A.vmult (y,x);
double length = x.l2_norm ();
double old_value = value;
- x.scale(1./length);
+ x *= 1./length;
// Main loop
double res = -std::numeric_limits<double>::max();
const Number c,
const Vector<Number> &X);
- /**
- * Scale each element of the vector by the given factor.
- *
- * @deprecated This function is deprecated and will be removed in a future
- * version. Use <tt>operator *=</tt> and <tt>operator /=</tt> instead.
- */
- void scale (const Number factor) DEAL_II_DEPRECATED
- {
- this->operator *= (factor);
- }
-
/**
* Scale each element of the vector by a constant value.
*
// ---------------------------------------------------------------------
//
-// Copyright (C) 2011 - 2013 by the deal.II authors
+// Copyright (C) 2011 - 2013, 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
// ---------------------------------------------------------------------
//
-// Copyright (C) 2000 - 2013 by the deal.II authors
+// Copyright (C) 2000 - 2013, 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
std::transform (v1.begin(), v1.end(), v2.begin(),
std::bind2nd (std::multiplies<double>(),
2.0));
- v2.scale (1./2.);
+ v2 *= 1./2;
deallog << "Check 7: " << (v1 == v2 ? "true" : "false") << std::endl;
// ---------------------------------------------------------------------
//
-// Copyright (C) 2000 - 2013 by the deal.II authors
+// Copyright (C) 2000 - 2013, 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
std::transform (v1.begin(), v1.end(), v2.begin(),
std::bind2nd (std::multiplies<std::complex<double> >(),
2.0));
- v2.scale (std::complex<double>(1./2.));
+ v2 *= std::complex<double>(1./2.);
deallog << "Check 7: " << (v1 == v2 ? "true" : "false") << std::endl;
// ---------------------------------------------------------------------
//
-// Copyright (C) 1998 - 2013 by the deal.II authors
+// Copyright (C) 1998 - 2013, 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
d1.sadd (2, 2, d2, 2, d3);
print (d1);
- d1.scale (4.);
+ d1 *= 4.;
print (d1);
deallog << "equ" << std::endl;