* @relates EnableIfScalar
*/
template <int dim,
- typename Number,
- typename OtherNumber,
- typename = typename EnableIfScalar<OtherNumber>::type>
+ typename Number,
+ typename OtherNumber,
+ typename = typename EnableIfScalar<OtherNumber>::type>
inline
Tensor<0,dim,typename ProductType<OtherNumber, Number>::type>
operator * (const OtherNumber factor,
* @relates EnableIfScalar
*/
template <int dim,
- typename Number,
- typename OtherNumber,
- typename = typename EnableIfScalar<OtherNumber>::type>
+ typename Number,
+ typename OtherNumber,
+ typename = typename EnableIfScalar<OtherNumber>::type>
inline
Tensor<0,dim,typename ProductType<Number, OtherNumber>::type>
operator * (const Tensor<0,dim,Number> &t,
* @relates EnableIfScalar
*/
template <int dim,
- typename Number,
- typename OtherNumber,
- typename = typename EnableIfScalar<OtherNumber>::type>
+ typename Number,
+ typename OtherNumber,
+ typename = typename EnableIfScalar<OtherNumber>::type>
inline
Tensor<0,dim,typename ProductType<Number, OtherNumber>::type>
operator / (const Tensor<0,dim,Number> &t,
* times the number of independent components of each sub-tensor.
*/
static const unsigned int
- n_independent_components = Tensor<rank_-1,dim>::n_independent_components * dim;
+ n_independent_components = Tensor<rank_-1,dim>::n_independent_components *dim;
/**
* Declare a type that holds real-valued numbers with the same precision
* type statically.
*/
typedef typename Tensor<rank_-1,dim,Number>::array_type
- array_type[(dim != 0) ? dim : 1];
+ array_type[(dim != 0) ? dim : 1];
/**
* Constructor. Initialize all entries to zero if
/**
* Read-Write access operator.
*/
- value_type & operator [] (const unsigned int i);
+ value_type &operator [] (const unsigned int i);
/**
* Read-only access operator.
*/
- const value_type & operator[](const unsigned int i) const;
+ const value_type &operator[](const unsigned int i) const;
/**
* Read access using TableIndices <tt>indices</tt>
// tensor[indices[0]][indices[1]]...[indices[rank_]]
template<int rank, int dim, typename Number>
static inline
- Number & extract(Tensor<rank_,dim,Number> &t, const TableIndices<rank> &indices)
+ Number &extract(Tensor<rank_,dim,Number> &t, const TableIndices<rank> &indices)
{
Assert (indices[rank - rank_]<dim, ExcIndexRange (indices[rank - rank_], 0, dim));
return TensorIndicesHelper<rank_ - 1>::template extract<rank, dim, Number>(
- t[indices[rank - rank_]], indices);
+ t[indices[rank - rank_]], indices);
}
};
{
template<int rank, int dim, typename Number>
static inline
- Number & extract(Tensor<1,dim,Number> &t, const TableIndices<rank> &indices)
+ Number &extract(Tensor<1,dim,Number> &t, const TableIndices<rank> &indices)
{
Assert (indices[rank - 1]<dim, ExcIndexRange (indices[rank - 1], 0, dim));
return t[indices[rank-1]];
{
for (unsigned int i=0; i<dim; ++i)
static_cast<Tensor<rank_ - 1, dim, Number> >(values[i]).
- unroll_recursion(result, index);
+ unroll_recursion(result, index);
}
* @relates EnableIfScalar
*/
template <int rank, int dim,
- typename Number,
- typename OtherNumber,
- typename = typename EnableIfScalar<OtherNumber>::type>
+ typename Number,
+ typename OtherNumber,
+ typename = typename EnableIfScalar<OtherNumber>::type>
inline
Tensor<rank,dim,typename ProductType<Number, OtherNumber>::type>
operator * (const Tensor<rank,dim,Number> &t,
* @relates EnableIfScalar
*/
template <int rank, int dim,
- typename Number,
- typename OtherNumber,
- typename = typename EnableIfScalar<OtherNumber>::type>
+ typename Number,
+ typename OtherNumber,
+ typename = typename EnableIfScalar<OtherNumber>::type>
inline
Tensor<rank,dim,typename ProductType<Number, OtherNumber>::type>
operator * (const Number factor,
* @relates EnableIfScalar
*/
template <int rank, int dim,
- typename Number,
- typename OtherNumber,
- typename = typename EnableIfScalar<OtherNumber>::type>
+ typename Number,
+ typename OtherNumber,
+ typename = typename EnableIfScalar<OtherNumber>::type>
inline
Tensor<rank,dim,typename ProductType<Number, OtherNumber>::type>
operator / (const Tensor<rank,dim,Number> &t,
deallog << f + d << std::endl;
deallog << f - d << std::endl;
- deallog << f * d << std::endl;
+ deallog << f *d << std::endl;
deallog << d + c << std::endl;
deallog << d - c << std::endl;
- deallog << d * c << std::endl;
+ deallog << d *c << std::endl;
float f_scalar = 10.;
deallog << (d * f_scalar) << std::endl;
deallog << f + d << std::endl;
deallog << f - d << std::endl;
- deallog << f * d << std::endl;
+ deallog << f *d << std::endl;
deallog << d + c << std::endl;
deallog << d - c << std::endl;
- deallog << d * c << std::endl;
+ deallog << d *c << std::endl;
float f_scalar = 10.;
deallog << (d * f_scalar) << std::endl;
deallog << f + d << std::endl;
deallog << f - d << std::endl;
- deallog << f * d << std::endl;
+ deallog << f *d << std::endl;
deallog << d + c << std::endl;
deallog << d - c << std::endl;
- deallog << d * c << std::endl;
+ deallog << d *c << std::endl;
float f_scalar = 10.;
deallog << (d * f_scalar) << std::endl;