Package com.io7m.jtensors.generators
Class PMatrix2x2DGenerator<A,B>
java.lang.Object
com.io7m.jtensors.generators.PMatrix2x2DGenerator<A,B>
- Type Parameters:
A- A phantom type parameter (possibly representing a source coordinate system)B- A phantom type parameter (possibly representing a target coordinate system)
- All Implemented Interfaces:
net.java.quickcheck.Generator<PMatrix2x2D<A,B>>
public final class PMatrix2x2DGenerator<A,B>
extends Object
implements net.java.quickcheck.Generator<PMatrix2x2D<A,B>>
A matrix generator.
-
Constructor Summary
ConstructorsConstructorDescriptionPMatrix2x2DGenerator(net.java.quickcheck.Generator<Double> in_gen) Construct a generator. -
Method Summary
Modifier and TypeMethodDescriptionstatic <A,B> net.java.quickcheck.Generator <PMatrix2x2D<A, B>> create()Create a generator initialized with a default component generator.static <A,B> net.java.quickcheck.Generator <PMatrix2x2D<A, B>> Create a generator initialized with a default component generator that only produces values in the range[-1.0, 1.0].next()
-
Constructor Details
-
PMatrix2x2DGenerator
Construct a generator.- Parameters:
in_gen- A component generator
-
-
Method Details
-
create
Create a generator initialized with a default component generator.- Type Parameters:
A- A phantom type parameter (possibly representing a source coordinate system)B- A phantom type parameter (possibly representing a target coordinate system)- Returns:
- A generator
-
createNormal
Create a generator initialized with a default component generator that only produces values in the range[-1.0, 1.0].- Type Parameters:
A- A phantom type parameter (possibly representing a source coordinate system)B- A phantom type parameter (possibly representing a target coordinate system)- Returns:
- A generator
-
next
- Specified by:
nextin interfacenet.java.quickcheck.Generator<A>
-