This file is indexed.

/usr/include/deal.II/lac/lapack_support.h is in libdeal.ii-dev 6.3.1-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
 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
//---------------------------------------------------------------------------
//    $Id: lapack_support.h 21040 2010-04-26 14:46:59Z willems $
//    Version: $Name$
//
//    Copyright (C) 2005, 2006, 2008 by the deal.II authors
//
//    This file is subject to QPL and may not be  distributed
//    without copyright and license information. Please refer
//    to the file deal.II/doc/license.html for the  text  and
//    further information on this license.
//
//---------------------------------------------------------------------------
#ifndef __deal2__lapack_support_h
#define __deal2__lapack_support_h


#include <base/config.h>
#include <base/exceptions.h>

DEAL_II_NAMESPACE_OPEN


namespace LAPACKSupport
{
/**
 * Most LAPACK functions change the contents of the matrix applied to
 * to something which is not a matrix anymore. Therefore, LAPACK
 * matrix classes in <tt>deal.II</tt> have a state flag indicating
 * what happened to them.
 *
 * @author Guido Kanschat, 2005
 */
  enum State
  {
					 /// Contents is actually a matrix.
	matrix,
					 /// Contents is the inverse of a matrix.
	inverse_matrix,
					 /// Contents is an LU decomposition.
	lu,
					 /// Eigenvalue vector is filled
	eigenvalues,
					 /// Contents is something useless.
	unusable = 0x8000
  };
  
				   /**
				    * Function printing the name of a State.
				    */
  inline const char* state_name(State s)
  {
    switch (s)
      {
	case matrix:
	      return "matrix";
	case inverse_matrix:
	      return "inverse matrix";
	case lu:
	      return "lu decomposition";
	case eigenvalues:
	      return "eigenvalues";
	case unusable:
	      return "unusable";
	default:
	      return "unknown";
      }
    return "internal error";
  }
  
/**
 * A matrix can have certain features allowing for optimization, but
 * hard to test. These are listed here.
 */
  enum Properties
  {
					 /// No special properties
	general = 0,
					 /// Matrix is symmetric
	symmetric = 1,
					 /// Matrix is upper triangular
	upper_triangle = 2,
					 /// Matrix is lower triangular
	lower_triangle = 4,
					 /// Matrix is diagonal
	diagonal = 6,
					 /// Matrix is in upper Hessenberg form
	hessenberg = 8
  };

				   /**
				    * Character constant.
				    */
  static const char V = 'V';
				   /**
				    * Character constant.
				    */
  static const char T = 'T';
				   /**
				    * Character constant.
				    */
  static const char N = 'N';
				   /**
				    * Character constant.
				    */
  static const char U = 'U';
				   /**
				    * Integer constant.
				    */
  static const int zero = 0;
				   /**
				    * Integer constant.
				    */
  static const int one = 1;

				   /**
				    * Exception thrown when a matrix
				    * is not in a suitable state for
				    * an operation. For instance, a
				    * LAPACK routine may have left the
				    * matrix in an unusable state,
				    * then vmult does not make sense
				    * anymore.
				    */
  DeclException1(ExcState, State,
		 << "The function cannot be called while the matrix is in state "
		 << state_name(arg1));

				   /**
				    * This exception is thrown if a
				    * certain function is not
				    * implemented in your LAPACK
				    * version.
				    */
  DeclException1(ExcMissing, char*,
		 << "The function "
		 << arg1
		 << " required here is missing in your LAPACK installation");
}


DEAL_II_NAMESPACE_CLOSE

#endif