/usr/include/linbox/field/givaro-rational.h is in liblinbox-dev 1.1.6~rc0-4.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 | /* -*- mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* linbox/field/givaro-rational.h
* Copyright (C) 2004 Gilles Villard
*
* Created Gilles Villard < Gilles.Villard@ens-lyon.fr>
* ven oct 8 13:30:05 CEST 2004
*/
#ifndef __GIVARO_RATIONAL_H
#define __GIVARO_RATIONAL_H
#include "linbox/integer.h"
#include "linbox/field/unparametric.h"
#include <linbox/field/field-traits.h>
//------------------------------------
// Files of Givaro library
#include "givaro/givrational.h"
//------------------------------------
namespace LinBox
{
template <class Ring>
struct ClassifyRing;
class GivaroRational;
template<>
struct ClassifyRing<GivaroRational> {
typedef RingCategories::RationalTag categoryTag;
};
class GivaroRational : public UnparametricField<Rational>
{
public:
/** Element type.
*
*/
typedef Rational Element;
Element& init(Element& x , const integer& y = 0) const
{ return x=Rational(y);}
}; // class
} // namespace LinBox
#endif // __GIVARO_RATIONAL_H
|