T - Type of the field elements.public abstract class AbstractField<T extends NativeOperators<T>> extends Object implements Field<T>
Field.| Constructor and Description |
|---|
AbstractField() |
| Modifier and Type | Method and Description |
|---|---|
T |
add(T a,
T b) |
T |
divide(T a,
T b) |
T |
multiply(int n,
T a) |
T |
multiply(T a,
T b) |
T |
negate(T a) |
T |
reciprocal(T a) |
T |
subtract(T a,
T b) |
public AbstractField()
public T add(T a, T b)
add in interface Field<T extends NativeOperators<T>>a - Field element.b - Field element.a + b.public T subtract(T a, T b)
subtract in interface Field<T extends NativeOperators<T>>a - Field element.b - Field element.a - b.public T negate(T a)
negate in interface Field<T extends NativeOperators<T>>a - Field element.-a.public T multiply(int n, T a)
multiply in interface Field<T extends NativeOperators<T>>n - Number of times a must be added to itself.a - Field element.n a.public T multiply(T a, T b)
multiply in interface Field<T extends NativeOperators<T>>a - Field element.b - Field element.a * b.public T divide(T a, T b)
divide in interface Field<T extends NativeOperators<T>>a - Field element.b - Field element.a * b-1.public T reciprocal(T a)
reciprocal in interface Field<T extends NativeOperators<T>>a - Field element.a-1.Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.