This file is indexed.

/usr/include/viennacl/traits/start.hpp is in libviennacl-dev 1.5.2-2.

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
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
#ifndef VIENNACL_TRAITS_START_HPP_
#define VIENNACL_TRAITS_START_HPP_

/* =========================================================================
   Copyright (c) 2010-2014, Institute for Microelectronics,
                            Institute for Analysis and Scientific Computing,
                            TU Wien.
   Portions of this software are copyright by UChicago Argonne, LLC.

                            -----------------
                  ViennaCL - The Vienna Computing Library
                            -----------------

   Project Head:    Karl Rupp                   rupp@iue.tuwien.ac.at

   (A list of authors and contributors can be found in the PDF manual)

   License:         MIT (X11), see file LICENSE in the base directory
============================================================================= */

/** @file viennacl/traits/start.hpp
    @brief Extracts the underlying OpenCL start index handle from a vector, a matrix, an expression etc.
*/

#include <string>
#include <fstream>
#include <sstream>
#include "viennacl/forwards.h"

#include "viennacl/meta/result_of.hpp"

namespace viennacl
{
  namespace traits
  {
    //
    // start: Mostly for vectors
    //

    // Default: Try to get the start index from the .start() member function
    template <typename T>
    typename result_of::size_type<T>::type
    start(T const & obj)
    {
      return obj.start();
    }

    //ViennaCL vector leads to start index 0:
    template <typename ScalarType, unsigned int ALIGNMENT>
    typename result_of::size_type<viennacl::vector<ScalarType, ALIGNMENT> >::type
    start(viennacl::vector<ScalarType, ALIGNMENT> const &)
    {
      return 0;
    }


    //
    // start1: Row start index
    //

    // Default: Try to get the start index from the .start1() member function
    template <typename T>
    typename result_of::size_type<T>::type
    start1(T const & obj)
    {
      return obj.start1();
    }

    //ViennaCL matrix leads to start index 0:
    template <typename ScalarType, typename F, unsigned int ALIGNMENT>
    typename result_of::size_type<viennacl::matrix<ScalarType, F, ALIGNMENT> >::type
    start1(viennacl::matrix<ScalarType, F, ALIGNMENT> const &)
    {
      return 0;
    }


    //
    // start2: Column start index
    //
    template <typename T>
    typename result_of::size_type<T>::type
    start2(T const & obj)
    {
      return obj.start2();
    }

    //ViennaCL matrix leads to start index 0:
    template <typename ScalarType, typename F, unsigned int ALIGNMENT>
    typename result_of::size_type<viennacl::matrix<ScalarType, F, ALIGNMENT> >::type
    start2(viennacl::matrix<ScalarType, F, ALIGNMENT> const &)
    {
      return 0;
    }


  } //namespace traits
} //namespace viennacl


#endif