RE
- the type of the ring elements to be createspublic interface IRingElementFactory<RE extends IRingElement<RE>>
extends java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.util.Random |
random
The default random number generator for use in .
|
Modifier and Type | Method and Description |
---|---|
Matrix<RE> |
convert(Matrix<? extends IRingElement<?>> from)
convert matrices
|
Vector<RE> |
convert(Vector<? extends IRingElement<?>> from)
convert vectors to the type represented by this factory.
|
RE |
gaussianRandomValue()
Returns a random value RE with distribution N(0, 1)
Note! |
RE |
gaussianRandomValue(java.util.Random random)
Deprecated.
|
RE |
get(double d)
create elements from doubles
|
RE |
get(int i)
create elements from integers
|
RE |
get(long d)
create elements from longs
|
RE |
get(java.lang.Object o)
create elements from another data type.
|
RE[] |
getArray(int size)
This is to allow the class
Vector to create arrays with elements
of type RE |
RE[][] |
getArray(int rows,
int columns)
This is to allow the class
Vector to create 2-dimensional arrays
with elements of type RE |
RE |
m_one()
Provide a minus one.
|
RE |
one()
Provide a one.
|
RE |
randomValue()
Returns a uniformly distributed random value.
|
RE |
randomValue(java.util.Random random)
Deprecated.
use
randomValue() |
RE |
randomValue(java.util.Random random,
RE min,
RE max)
Deprecated.
|
RE |
randomValue(RE min,
RE max) |
RE |
zero()
Provide a zero.
|
static final java.util.Random random
RE[] getArray(int size)
Vector
to create arrays with elements
of type REsize
- the size of the array to be createdRE[][] getArray(int rows, int columns)
Vector
to create 2-dimensional arrays
with elements of type RErows
- columns
- RE one()
RE
.RE zero()
RE
.RE m_one()
RE
.RE get(java.lang.Object o)
o
- some object typeRE
InvalidOperationException
- if o
cannot be converted into type RE get(int i)
i
- an integerRE
RE get(long d)
d
- an integerRE
RE get(double d)
d
- a doubleRE
@Deprecated RE gaussianRandomValue(java.util.Random random)
gaussianRandomValue()
@Deprecated RE randomValue(java.util.Random random)
randomValue()
RE randomValue(RE min, RE max)
min
- max
- RE gaussianRandomValue()
RE randomValue()
@Deprecated RE randomValue(java.util.Random random, RE min, RE max)
randomValue(IRingElement, IRingElement)
Vector<RE> convert(Vector<? extends IRingElement<?>> from)
from
- the vector to be convertedMatrix<RE> convert(Matrix<? extends IRingElement<?>> from)
from
- the matrix to be converted