This file is indexed.

/usr/include/dune/localfunctions/meta/power/coefficients.hh is in libdune-localfunctions-dev 2.4.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:

#ifndef DUNE_LOCALFUNCTIONS_META_POWER_COEFFICIENTS_HH
#define DUNE_LOCALFUNCTIONS_META_POWER_COEFFICIENTS_HH

#include <cstddef>
#include <vector>

#include <dune/localfunctions/common/localkey.hh>

namespace Dune {

  //! \brief Meta-coefficients turning a scalar coefficients into
  //!        vector-valued coefficients
  /**
   * \nosubgrouping
   * \implements CoefficientsInterface
   */
  class PowerCoefficients {
    std::vector<LocalKey> keys;

  public:
    //! Construct a PowerCoefficients object
    /**
     * \param backend The backend coeficients object to raise to a power.
     * \param power   Power to raise the backend object to.
     *
     * The LocalKeys of the backend coefficients are copied into internal
     * storage.  The index member of each LocalKey is modified to keep them
     * unique for instances of different power.
     */
    template<class Backend>
    PowerCoefficients(const Backend &backend, std::size_t power) :
      keys(backend.size()*power)
    {
      for(std::size_t i = 0; i < backend.size(); ++i) {
        const LocalKey &k = backend.localKey(i);
        for(std::size_t d = 0; d < power; ++d)
          keys[i+d*backend.size()] =
            LocalKey(k.subEntity(), k.codim(), power*k.index() + d);
      }
    }
    //! number of coefficients
    inline std::size_t size() const { return keys.size(); }

    //! get i'th index
    inline const LocalKey& localKey(std::size_t i) const { return keys[i]; }
  };

} // namespace Dune

#endif // DUNE_LOCALFUNCTIONS_META_POWER_COEFFICIENTS_HH