tests ring and field operations
More...
#include <iostream>
#include <sstream>
#include <vector>
#include <cstdio>
#include "linbox/util/commentator.h"
#include "linbox/util/field-axpy.h"
#include <givaro/givranditer.h>
#include "linbox/integer.h"
#include "test-common.h"
|
| namespace | field_subtests |
| | Tests of algebraic properties of rings and fields.
|
| |
|
| template<class Ring > |
| bool | testRing (Ring &F, const char *title, bool fieldp=true, bool runInitConvertIdentity=true) |
| | Check each field or ring operation.
|
| |
| template<class Field > |
| bool | testFieldInversion (const Field &F, const char *name, unsigned int iterations) |
| | Generic test 5: Inversion of elements.
|
| |
| template<class Field > |
| bool | testFieldDistributivity (const Field &F, const char *name, unsigned int iterations) |
| | Generic test 7a: Distributivity of multiplication over addition.
|
| |
| template<class Field > |
| bool | testFieldCommutativity (const Field &F, const char *name, unsigned int iterations) |
| | Generic test 7b: Commutativity of multiplication and addition.
|
| |
| template<class Field > |
| bool | testFieldAssociativity (const Field &F, const char *name, unsigned int iterations) |
| | Generic test 7c: Associativity of addition and multiplication.
|
| |
| template<class Field > |
| bool | testGeometricSummation (const Field &F, const char *name, unsigned int iterations, unsigned int n) |
| | Generic test 2: Geometric summation.
|
| |
| template<class Field > |
| bool | testFieldCharacteristic (const Field &F, const char *name, unsigned int iterations) |
| | Generic test 3: Test of field characteristic.
|
| |
| template<class Field > |
| bool | testFreshmansDream (const Field &F, const char *name, unsigned int iterations) |
| | Generic test 4: The Freshman's Dream.
|
| |
| template<class Field > |
|