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 java.lang.Object implements net.java.quickcheck.Generator<PMatrix2x2D<A,B>>
A matrix generator.
-
Constructor Summary
Constructors Constructor Description PMatrix2x2DGenerator(net.java.quickcheck.Generator<java.lang.Double> in_gen)
Construct a generator. -
Method Summary
Modifier and Type Method Description static <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>>
createNormal()
Create a generator initialized with a default component generator that only produces values in the range[-1.0, 1.0]
.PMatrix2x2D<A,B>
next()
-
Constructor Details
-
PMatrix2x2DGenerator
public PMatrix2x2DGenerator(net.java.quickcheck.Generator<java.lang.Double> in_gen)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:
next
in interfacenet.java.quickcheck.Generator<A>
-