<ol>
+ <li> Removed: Tensor<rank,dim,Number> as well as Point<dim,Number> no
+ longer have a constructor taking a boolean argument. Those were replaced
+ by a default constructor will always initialize underlying values with
+ zero.
+ <br>
+ (Matthias Maier, 2015/09/07)
+ </li>
+
<li> Removed: The testsuite no longer supports compiler constraints of
the form "<code>.compiler=[NAME]...</code>".
<br>
<br>
(Matthias Maier, 2015/08/29)
</li>
-
+
<li> New: A class BlockLinearOperator has been introduced that extends
the LinearOperator concept to block structures. A BlockLinearOperator can
be sliced back to a LinearOperator.
*/
Point ();
- /**
- * Constructor. Initialize all entries to zero if <tt>initialize==true</tt>
- * (in which case it is equivalent to the default constructor) or leaves the
- * elements uninitialized if <tt>initialize==false</tt>.
- */
- explicit Point (const bool initialize);
-
/**
* Convert a tensor to a point.
*/
-template <int dim, typename Number>
-inline
-Point<dim,Number>::Point (const bool initialize)
- :
- Tensor<1,dim,Number>(initialize)
-{}
-
-
-
template <int dim, typename Number>
inline
Point<dim,Number>::Point (const Tensor<1,dim,Number> &t)
// array always has positive size.
/**
- * Constructor. Initialize all entries to zero if
- * <tt>initialize==true</tt>; this is the default behaviour.
+ * Constructor. Initialize all entries to zero.
*/
- explicit
- Tensor (const bool initialize = true);
+ Tensor ();
/**
* Copy constructor.
template <int rank_, int dim, typename Number>
inline
-Tensor<rank_,dim,Number>::Tensor (const bool /*initialize*/)
+Tensor<rank_,dim,Number>::Tensor ()
{
// All members of the c-style array values are already default initialized
// and thus all values are already set to zero recursively.
-
- // TODO: Think about using the default heap allocator to restore the old
- // behavior.
}
operator * (const Tensor<2,dim,Number> &src1,
const Tensor<1,dim,Number> &src2)
{
- Tensor<1,dim,Number> dest (false);
+ Tensor<1,dim,Number> dest;
for (unsigned int i=0; i<dim; ++i)
{
dest[i] = src1[i][0] * src2[0];
operator * (const Tensor<1,dim,Number> &src1,
const Tensor<2,dim,Number> &src2)
{
- Tensor<1,dim,Number> dest (false);
+ Tensor<1,dim,Number> dest;
for (unsigned int i=0; i<dim; ++i)
{
dest[i] = src1[0] * src2[0][i];