Skip to content
Snippets Groups Projects
Commit 827979a8 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

Use a special implementation of a rank-3 tensor

[[Imported from SVN: r6298]]
parent 8413c4d9
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@
#include <dune/gfe/targetspacertrsolver.hh>
#include <dune/gfe/svd.hh>
#include <dune/gfe/tensor3.hh>
//! calculates ret = A * B
template< class K, int m, int n, int p >
......@@ -290,11 +291,11 @@ evaluateDerivativeOfGradientWRTCoefficient(const Dune::FieldVector<ctype, dim>&
assembler.assembleHessian(q,dFdq);
//
std::array<Dune::FieldMatrix<double,targetDim,targetDim>, dim+1> dcDqF;
Tensor3<double,dim+1,targetDim,targetDim> dcDqF;
std::array<Dune::FieldMatrix<double,targetDim,dim+1>, dim+1> dcDwF;
Tensor3<double,dim+1,targetDim,dim+1> dcDwF;
for (size_t i=0; i<dcDwF.size(); i++)
dcDwF[i] = TargetSpace::secondDerivativeOfDistanceSquaredWRTFirstAndSecondArgument(coefficients_[i], q);
......
#ifndef DUNE_TENSOR_3_HH
#define DUNE_TENSOR_3_HH
/** \file
\brief A third-rank tensor
*/
template <class T, int N1, int N2, int N3>
class Tensor3
: public Dune::array<Dune::FieldMatrix<T,N2,N3>,N1>
{
};
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment