This file is indexed.

/usr/include/linbox/matrix/sparsematrix/read-write-sparse.h is in liblinbox-dev 1.4.2-5build1.

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
/*
 * Copyright (C) the LinBox group
 *
 * 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 linbox/matrix/sparsematrix/read-write-sparse.h
 * @ingroup sparsematrix
 * @brief
 */

#ifndef __LINBOX_matrix_sparse_matrix_read_write_sparse_H
#define __LINBOX_matrix_sparse_matrix_read_write_sparse_H

#include "linbox/matrix/matrix-traits.h"
#include "linbox/matrix/matrix-category.h"
#include "linbox/util/matrix-stream.h"

namespace LinBox {

	//! Write helper
	template <class Matrix>
	class SparseMatrixWriteHelper {
	public:
		typedef typename Matrix::Field          Field;
		typedef typename Field::Element       Element;

	private:
		static std::ostream &writeTriple (const Matrix &A
						  , std::ostream &os
						  , MatrixCategories::RowMatrixTag
						  , bool oneBased = false);

		static std::ostream &writeTriple (const Matrix &A
						  , std::ostream &os
						  , MatrixCategories::BlackboxTag
						  , bool oneBased = false);


		static std::ostream &writePretty (const Matrix &A
						  , std::ostream &os
						  , std::string begmat
						  , std::string endmat
						  , std::string begrow
						  , std::string endrow
						  , std::string sepelt
						  , std::string seprow
						  , MatrixCategories::RowMatrixTag
						 );

		static std::ostream &writePretty (const Matrix &A
						  , std::ostream &os
						  , std::string begmat
						  , std::string endmat
						  , std::string begrow
						  , std::string endrow
						  , std::string sepelt
						  , std::string seprow
						  , MatrixCategories::BlackboxTag
						 );



	public:
		static std::ostream &write (const Matrix &A
					    , std::ostream &os
					    , LINBOX_enum(Tag::FileFormat) format);
	};

	//! Read helper
	template <class Matrix>
	class SparseMatrixReadHelper  {

	public:
		typedef typename Matrix::Field      Field;
		typedef typename Field::Element   Element;

	private:

#if 0
		static std::istream &readTurner    (Matrix &A
						    , std::istream &is
						    , char *buf);

		static std::istream &readMagmaCpt  (Matrix &A
						    , std::istream &is
						    , char *buf);
#endif

		static std::istream &readGuillaume (Matrix &A
						    , std::istream &is
						    , char *buf);

		static std::istream &readMatlab    (Matrix &A
						    , std::istream &is
						    , char *buf);

		static std::istream &readPretty    (Matrix &A
						    , std::istream &is
						    , char *buf
						    , MatrixCategories::RowMatrixTag);

		static std::istream &readPretty    (Matrix &A
						    , std::istream &is
						    , char *buf
						    , MatrixCategories::BlackboxTag);

		static std::istream &readMatrixMarket (Matrix &A
						    , std::istream &is
						    , char *buf);




	public:
		static std::istream &read (Matrix &A
					   , std::istream &is
					   , LINBOX_enum(Tag::FileFormat) format)
		;
			// return read(A,is,format, typename MatrixTraits<Matrix>::MatrixCategory ());
	};



} // LinBox


#include "linbox/matrix/sparsematrix/read-write-sparse.inl"
#endif // __LINBOX_matrix_sparse_matrix_read_write_sparse_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