| 1 |
/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. |
| 2 |
* See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. |
| 3 |
* Author(s): Clément Maria |
| 4 |
* |
| 5 |
* Copyright (C) 2014 Inria |
| 6 |
* |
| 7 |
* Modification(s): |
| 8 |
* - YYYY/MM Author: Description of the modification |
| 9 |
*/ |
| 10 |
|
| 11 |
/** \brief Concept describing the requirements for a class to represent |
| 12 |
* a field of coefficients to compute persistent homology. |
| 13 |
*/ |
| 14 |
struct CoefficientField { |
| 15 |
|
| 16 |
/** \brief Type of element of the field. |
| 17 |
* |
| 18 |
* Must be Assignable. */ |
| 19 |
typedef unspecified Element; |
| 20 |
|
| 21 |
/** Default constructible. */ |
| 22 |
CoefficientField(); |
| 23 |
|
| 24 |
void init(Element charac); |
| 25 |
void init(Element charac_min, Element charac_max); |
| 26 |
|
| 27 |
/** Return the characteristic of the field. */ |
| 28 |
Element characteristic(); |
| 29 |
/** Return the element 1 of the field. */ |
| 30 |
Element multiplicative_identity(); |
| 31 |
/** Return the element 0 of the field. */ |
| 32 |
Element additive_identity(); |
| 33 |
|
| 34 |
/** Assign: x <- x + y */ |
| 35 |
void plus_equal(Element x, Element y); |
| 36 |
|
| 37 |
/** */ |
| 38 |
//... inverse() |
| 39 |
|
| 40 |
}; |