This file is indexed.

/usr/include/linbox/matrix/dense-matrix.h is in liblinbox-dev 1.4.2-3.

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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/* linbox/matrix/dense-matrix.h
 * Copyright (C) 2014 the LinBox
 *
 * Written by :
 * Brice Boyer (briceboyer) <boyer.brice@gmail.com>
 *
 * ========LICENCE========
 * This file is part of the library LinBox.
 *
  * LinBox is free software: you can redistribute it and/or modify
 * it under the terms of the  GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 * ========LICENCE========
 */

/*! @file matrix/dense-matrix.h
 * @ingroup densematrix
 * @brief NODOC
 */

#ifndef __LINBOX_matrix_dense_matrix_H
#define __LINBOX_matrix_dense_matrix_H


//! @bug those are not just traits:
#include "linbox/linbox-config.h"
#include "linbox/vector/vector-traits.h"
#include "linbox/matrix/matrix-traits.h"

namespace LinBox { /*  forward declarations */

	template <class _Field, class _blasRep=typename Vector<_Field>::Dense >
	class BlasMatrix ;

	template <class _Field>
	using DenseMatrix = BlasMatrix<_Field> ;

	template<class _Matrix>
	class BlasSubmatrix ;

	template <class _Field>
	using DenseSubmatrix = BlasSubmatrix<DenseMatrix<_Field> > ;

	template <class _Field, class _Storage=typename Vector<_Field>::Dense >
	class TriangularBlasMatrix ;

	template <class _Field>
	using TriangularMatrix = TriangularBlasMatrix<_Field> ;

	/*! Write a matrix to a stream.
	 * The \c C++ way using <code>operator<< </code>
	 * @param o output stream
	 * @param Mat matrix to write.
	 */
	template <class _Field, class _Storage>
	std::ostream& operator<< (std::ostream & os, const BlasMatrix<_Field,_Storage> & Mat)
	{
		return Mat.write(os);
	}

	template <class _Matrix>
	std::ostream& operator<< (std::ostream & os, const BlasSubmatrix<_Matrix> & Mat)
	{
		return Mat.write(os);
	}

}

#include "linbox/matrix/densematrix/blas-matrix.h"
// #include "linbox/matrix/densematrix/blas-matrix-multimod.h"
// #include "linbox/matrix/densematrix/m4ri-matrix.h"

namespace LinBox { /*  MatrixContainerTrait */


	template <class Field, class Rep>
	class MatrixContainerTrait<BlasMatrix<Field,Rep> > {
	public:
		typedef MatrixContainerCategory::BlasContainer Type;
	};

	template <class Field, class Rep>
	class MatrixContainerTrait<const BlasMatrix<Field,Rep> > {
	public:
		typedef MatrixContainerCategory::BlasContainer Type;
	};

	template <class _Matrix>
	class MatrixContainerTrait<BlasSubmatrix<_Matrix> > {
	public:
		typedef MatrixContainerCategory::BlasContainer Type;
	};

	template <class _Matrix>
	class MatrixContainerTrait<const BlasSubmatrix<_Matrix> > {
	public:
		typedef MatrixContainerCategory::BlasContainer Type;
	};

} // LinBox

namespace LinBox { /*  MatrixTraits */

	template <class _Field, class _Rep>
	struct MatrixTraits< BlasMatrix<_Field,_Rep> > {
		typedef BlasMatrix<_Field,_Rep> MatrixType;
		typedef typename MatrixCategories::RowColMatrixTag MatrixCategory;
	};

	template <class _Field, class _Rep>
	struct MatrixTraits< const BlasMatrix<_Field,_Rep> > {
		typedef const BlasMatrix<_Field,_Rep> MatrixType;
		typedef typename MatrixCategories::RowColMatrixTag MatrixCategory;
	};

	template <class _Matrix>
	struct MatrixTraits< BlasSubmatrix<_Matrix> > {
		typedef BlasSubmatrix<_Matrix> MatrixType;
		typedef typename MatrixCategories::RowColMatrixTag MatrixCategory;
	};

	template <class _Matrix>
	struct MatrixTraits< const BlasSubmatrix<_Matrix> > {
		typedef const BlasSubmatrix<_Matrix> MatrixType;
		typedef typename MatrixCategories::RowColMatrixTag MatrixCategory;
	};

}

namespace LinBox { /*  MatrixHomTrait */

	//non working partial specialisation
	// template <class Ring, class Field, class _Rep>
	// struct MatrixHomTrait<BlasMatrix<Ring, _Rep>, Field> {
		// typedef BlasMatrix<Field,_Rep> value_type;
	// };

	template <class Ring, class Field>
	struct MatrixHomTrait<BlasMatrix<Ring, typename Vector<Ring>::Dense >, Field> {
		typedef BlasMatrix<Field,typename Vector<Field>::Dense > value_type;
	};


}

namespace LinBox { /*  IndexedCategory  */

	//! @bug this is trait, not a Category
	template<class Field, class _Rep>
	struct IndexedCategory< BlasMatrix<Field,_Rep> > {
		typedef IndexedTags::HasIndexed Tag;
	};

} // LinBox

namespace LinBox { /*  ContainerTraits */

	// this could also be a member of BlasVector
	template<class _Field, class _Rep>
	struct ContainerTraits<BlasMatrix<_Field,_Rep> > {
		typedef ContainerCategories::Matrix ContainerCategory ;
	};

	template<class _Matrix>
	struct ContainerTraits<BlasSubmatrix<_Matrix> > {
		typedef ContainerCategories::Matrix ContainerCategory ;
	};

}

#endif // __LINBOX_matrix_dense_matrix_H


// Local Variables:
// mode: C++
// tab-width: 8
// indent-tabs-mode: nil
// c-basic-offset: 8
// End:
// vim:sts=8:sw=8:ts=8:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s