/**
* Computes the volume element associated with the jacobian of the
* transformation F. That is to say if $DF$ is square, it computes
- * $\det(DF)$, in case DF is not square returns $\sqrt(\det(DF^{t} * DF))$.
+ * $\det(DF)$, in case DF is not square returns $\sqrt{\det(DF^T * DF)}$.
*/
double determinant () const;
private:
/**
- * Auxiliary function that computes (*this) * T^{t}
+ * Auxiliary function that computes (*this) * $T^{T}$
*/
- DerivativeForm<1, dim, spacedim, Number> times_T_t (Tensor<2,dim,Number> T) const;
+ DerivativeForm<1, dim, spacedim, Number> times_T_t (const Tensor<2,dim,Number> &T) const;
/**
template <int order, int dim, int spacedim, typename Number>
inline
DerivativeForm<1, dim, spacedim,Number>
-DerivativeForm<order,dim,spacedim,Number>::times_T_t (Tensor<2,dim,Number> T) const
+DerivativeForm<order,dim,spacedim,Number>::times_T_t (const Tensor<2,dim,Number> &T) const
{
Assert( order==1, ExcMessage("Only for order == 1."));
DerivativeForm<1,dim, spacedim,Number> dest;
Assert( order==1, ExcMessage("Only for order == 1."));
if (dim == spacedim)
{
- Tensor<2,dim,Number> T = (Tensor<2,dim,Number>)( (*this) );
+ const Tensor<2,dim,Number> T = static_cast<Tensor<2,dim,Number> >(*this);
return dealii::determinant(T);
}
else
{
Assert( spacedim>dim, ExcMessage("Only for spacedim>dim."));
- DerivativeForm<1,spacedim,dim> DF_t = this->transpose();
+ const DerivativeForm<1,spacedim,dim> DF_t = this->transpose();
Tensor<2,dim,Number> G; //First fundamental form
for (unsigned int i=0; i<dim; ++i)
for (unsigned int j=0; j<dim; ++j)
/**
* One of the uses of DerivativeForm is to apply it as a transformation. This
* is what this function does. If @p T is DerivativeForm<1,dim,1> it computes
- * $DF * T$, if @p T is DerivativeForm<1,dim,rank> it computes $T*DF^{t}$.
+ * $DF * T$, if @p T is DerivativeForm<1,dim,rank> it computes $T*DF^{T}$.
*
* @relates DerivativeForm
* @author Sebastian Pauletti, 2011
/**
- * Similar to previous apply_transformation. It computes $T*DF^{t}$.
+ * Similar to previous apply_transformation. It computes $T*DF^{T}$.
*
* @relates DerivativeForm
* @author Sebastian Pauletti, 2011
}
/**
- * Similar to previous apply_transformation. It computes $DF2*DF1^{t}$
+ * Similar to previous apply_transformation. It computes $DF2*DF1^{T}$
*
* @relates DerivativeForm
* @author Sebastian Pauletti, 2011