public class org.apache.commons.math3.random.SobolSequenceGenerator implements org.apache.commons.math3.random.RandomVectorGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.math3.random.SobolSequenceGenerator
super_class: java.lang.Object
{
private static final int BITS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 52
private static final double SCALE;
descriptor: D
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int MAX_DIMENSION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
private static final java.lang.String RESOURCE_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "/assets/org/apache/commons/math3/random/new-joe-kuo-6.1000"
private static final java.lang.String FILE_CHARSET;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "US-ASCII"
private final int dimension;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int count;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final long[][] direction;
descriptor: [[J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long[] x;
descriptor: [J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc 2.0
bipush 52
invokestatic org.apache.commons.math3.util.FastMath.pow:(DI)D
putstatic org.apache.commons.math3.random.SobolSequenceGenerator.SCALE:D
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.apache.commons.math3.random.SobolSequenceGenerator.count:I
2: iload 1
iconst_1
if_icmplt 3
iload 1
sipush 1000
if_icmple 4
3: StackMap locals: org.apache.commons.math3.random.SobolSequenceGenerator int
StackMap stack:
new org.apache.commons.math3.exception.OutOfRangeException
dup
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
sipush 1000
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokespecial org.apache.commons.math3.exception.OutOfRangeException.<init>:(Ljava/lang/Number;Ljava/lang/Number;Ljava/lang/Number;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "/assets/org/apache/commons/math3/random/new-joe-kuo-6.1000"
invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 2
start local 2 5: aload 2
ifnonnull 7
6: new org.apache.commons.math3.exception.MathInternalError
dup
invokespecial org.apache.commons.math3.exception.MathInternalError.<init>:()V
athrow
7: StackMap locals: java.io.InputStream
StackMap stack:
aload 0
iload 1
putfield org.apache.commons.math3.random.SobolSequenceGenerator.dimension:I
8: aload 0
iload 1
bipush 53
multianewarray [[J 2
putfield org.apache.commons.math3.random.SobolSequenceGenerator.direction:[[J
9: aload 0
iload 1
newarray 11
putfield org.apache.commons.math3.random.SobolSequenceGenerator.x:[J
10: aload 0
aload 2
invokevirtual org.apache.commons.math3.random.SobolSequenceGenerator.initFromStream:(Ljava/io/InputStream;)I
pop
11: goto 21
StackMap locals:
StackMap stack: java.io.IOException
12: pop
13: new org.apache.commons.math3.exception.MathInternalError
dup
invokespecial org.apache.commons.math3.exception.MathInternalError.<init>:()V
athrow
14: StackMap locals:
StackMap stack: org.apache.commons.math3.exception.MathParseException
pop
15: new org.apache.commons.math3.exception.MathInternalError
dup
invokespecial org.apache.commons.math3.exception.MathInternalError.<init>:()V
athrow
16: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
17: aload 2
invokevirtual java.io.InputStream.close:()V
18: goto 20
StackMap locals: org.apache.commons.math3.random.SobolSequenceGenerator int java.io.InputStream java.lang.Throwable
StackMap stack: java.io.IOException
19: pop
20: StackMap locals:
StackMap stack:
aload 3
athrow
21: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.InputStream.close:()V
22: goto 24
StackMap locals:
StackMap stack: java.io.IOException
23: pop
24: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/apache/commons/math3/random/SobolSequenceGenerator;
0 25 1 dimension I
5 25 2 is Ljava/io/InputStream;
Exception table:
from to target type
10 11 12 Class java.io.IOException
10 11 14 Class org.apache.commons.math3.exception.MathParseException
10 16 16 any
17 18 19 Class java.io.IOException
21 22 23 Class java.io.IOException
Exceptions:
throws org.apache.commons.math3.exception.OutOfRangeException
MethodParameters:
Name Flags
dimension final
public void <init>(int, java.io.InputStream);
descriptor: (ILjava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.apache.commons.math3.random.SobolSequenceGenerator.count:I
2: iload 1
iconst_1
if_icmpge 4
3: new org.apache.commons.math3.exception.NotStrictlyPositiveException
dup
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokespecial org.apache.commons.math3.exception.NotStrictlyPositiveException.<init>:(Ljava/lang/Number;)V
athrow
4: StackMap locals: org.apache.commons.math3.random.SobolSequenceGenerator int java.io.InputStream
StackMap stack:
aload 0
iload 1
putfield org.apache.commons.math3.random.SobolSequenceGenerator.dimension:I
5: aload 0
iload 1
bipush 53
multianewarray [[J 2
putfield org.apache.commons.math3.random.SobolSequenceGenerator.direction:[[J
6: aload 0
iload 1
newarray 11
putfield org.apache.commons.math3.random.SobolSequenceGenerator.x:[J
7: aload 0
aload 2
invokevirtual org.apache.commons.math3.random.SobolSequenceGenerator.initFromStream:(Ljava/io/InputStream;)I
istore 3
start local 3 8: iload 3
iload 1
if_icmpge 10
9: new org.apache.commons.math3.exception.OutOfRangeException
dup
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokespecial org.apache.commons.math3.exception.OutOfRangeException.<init>:(Ljava/lang/Number;Ljava/lang/Number;Ljava/lang/Number;)V
athrow
10: StackMap locals: int
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/commons/math3/random/SobolSequenceGenerator;
0 11 1 dimension I
0 11 2 is Ljava/io/InputStream;
8 11 3 lastDimension I
Exceptions:
throws org.apache.commons.math3.exception.NotStrictlyPositiveException, org.apache.commons.math3.exception.MathParseException, java.io.IOException
MethodParameters:
Name Flags
dimension final
is final
private int initFromStream(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=15, args_size=2
start local 0 start local 1 0: iconst_1
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.direction:[[J
iconst_0
aaload
iload 2
lconst_1
bipush 52
iload 2
isub
lshl
lastore
3: iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
bipush 52
if_icmple 2
end local 2 5: ldc "US-ASCII"
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 2
start local 2 6: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 1
aload 2
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 3
start local 3 7: iconst_m1
istore 4
start local 4 8: aload 3
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
pop
9: iconst_2
istore 5
start local 5 10: iconst_1
istore 6
start local 6 11: aconst_null
astore 7
start local 7 12: goto 34
13: StackMap locals: org.apache.commons.math3.random.SobolSequenceGenerator java.io.InputStream java.nio.charset.Charset java.io.BufferedReader int int int java.lang.String
StackMap stack:
new java.util.StringTokenizer
dup
aload 7
ldc " "
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 8
start local 8 14: aload 8
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 4
15: iload 4
iconst_2
if_icmplt 25
iload 4
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.dimension:I
if_icmpgt 25
16: aload 8
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 9
start local 9 17: aload 8
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 10
start local 10 18: iload 9
iconst_1
iadd
newarray 10
astore 11
start local 11 19: iconst_1
istore 12
start local 12 20: goto 23
21: StackMap locals: org.apache.commons.math3.random.SobolSequenceGenerator java.io.InputStream java.nio.charset.Charset java.io.BufferedReader int int int java.lang.String java.util.StringTokenizer int int int[] int
StackMap stack:
aload 11
iload 12
aload 8
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
iastore
22: iinc 12 1
StackMap locals:
StackMap stack:
23: iload 12
iload 9
if_icmple 21
end local 12 24: aload 0
iload 6
iinc 6 1
iload 10
aload 11
invokevirtual org.apache.commons.math3.random.SobolSequenceGenerator.initDirectionVector:(II[I)V
end local 11 end local 10 end local 9 25: StackMap locals: org.apache.commons.math3.random.SobolSequenceGenerator java.io.InputStream java.nio.charset.Charset java.io.BufferedReader int int int java.lang.String java.util.StringTokenizer
StackMap stack:
iload 4
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.dimension:I
if_icmple 33
26: iload 4
istore 14
27: aload 3
invokevirtual java.io.BufferedReader.close:()V
28: iload 14
ireturn
29: StackMap locals:
StackMap stack: java.util.NoSuchElementException
pop
30: new org.apache.commons.math3.exception.MathParseException
dup
aload 7
iload 5
invokespecial org.apache.commons.math3.exception.MathParseException.<init>:(Ljava/lang/String;I)V
athrow
31: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
32: new org.apache.commons.math3.exception.MathParseException
dup
aload 7
iload 5
invokespecial org.apache.commons.math3.exception.MathParseException.<init>:(Ljava/lang/String;I)V
athrow
33: StackMap locals:
StackMap stack:
iinc 5 1
end local 8 34: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 7
ifnonnull 13
end local 7 end local 6 end local 5 35: goto 39
StackMap locals: org.apache.commons.math3.random.SobolSequenceGenerator java.io.InputStream java.nio.charset.Charset java.io.BufferedReader int
StackMap stack: java.lang.Throwable
36: astore 13
37: aload 3
invokevirtual java.io.BufferedReader.close:()V
38: aload 13
athrow
39: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.io.BufferedReader.close:()V
40: iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Lorg/apache/commons/math3/random/SobolSequenceGenerator;
0 41 1 is Ljava/io/InputStream;
1 5 2 i I
6 41 2 charset Ljava/nio/charset/Charset;
7 41 3 reader Ljava/io/BufferedReader;
8 41 4 dim I
10 35 5 lineNumber I
11 35 6 index I
12 35 7 line Ljava/lang/String;
14 34 8 st Ljava/util/StringTokenizer;
17 25 9 s I
18 25 10 a I
19 25 11 m [I
20 24 12 i I
Exception table:
from to target type
14 27 29 Class java.util.NoSuchElementException
14 27 31 Class java.lang.NumberFormatException
8 27 36 any
29 36 36 any
Exceptions:
throws org.apache.commons.math3.exception.MathParseException, java.io.IOException
MethodParameters:
Name Flags
is final
private void initDirectionVector(int, int, int[]);
descriptor: (II[I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
arraylength
iconst_1
isub
istore 4
start local 4 1: iconst_1
istore 5
start local 5 2: goto 5
3: StackMap locals: int int
StackMap stack:
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.direction:[[J
iload 1
aaload
iload 5
aload 3
iload 5
iaload
i2l
bipush 52
iload 5
isub
lshl
lastore
4: iinc 5 1
StackMap locals:
StackMap stack:
5: iload 5
iload 4
if_icmple 3
end local 5 6: iload 4
iconst_1
iadd
istore 5
start local 5 7: goto 15
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.direction:[[J
iload 1
aaload
iload 5
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.direction:[[J
iload 1
aaload
iload 5
iload 4
isub
laload
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.direction:[[J
iload 1
aaload
iload 5
iload 4
isub
laload
iload 4
lshr
lxor
lastore
9: iconst_1
istore 6
start local 6 10: goto 13
11: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.direction:[[J
iload 1
aaload
iload 5
dup2
laload
iload 2
iload 4
iconst_1
isub
iload 6
isub
ishr
iconst_1
iand
i2l
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.direction:[[J
iload 1
aaload
iload 5
iload 6
isub
laload
lmul
lxor
lastore
12: iinc 6 1
StackMap locals:
StackMap stack:
13: iload 6
iload 4
iconst_1
isub
if_icmple 11
end local 6 14: iinc 5 1
StackMap locals:
StackMap stack:
15: iload 5
bipush 52
if_icmple 8
end local 5 16: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/apache/commons/math3/random/SobolSequenceGenerator;
0 17 1 d I
0 17 2 a I
0 17 3 m [I
1 17 4 s I
2 6 5 i I
7 16 5 i I
10 14 6 k I
MethodParameters:
Name Flags
d final
a final
m final
public double[] nextVector();
descriptor: ()[D
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.dimension:I
newarray 7
astore 1
start local 1 1: aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.count:I
ifne 4
2: aload 0
dup
getfield org.apache.commons.math3.random.SobolSequenceGenerator.count:I
iconst_1
iadd
putfield org.apache.commons.math3.random.SobolSequenceGenerator.count:I
3: aload 1
areturn
4: StackMap locals: double[]
StackMap stack:
iconst_1
istore 2
start local 2 5: aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.count:I
iconst_1
isub
istore 3
start local 3 6: goto 9
7: StackMap locals: int int
StackMap stack:
iload 3
iconst_1
ishr
istore 3
8: iinc 2 1
9: StackMap locals:
StackMap stack:
iload 3
iconst_1
iand
iconst_1
if_icmpeq 7
10: iconst_0
istore 4
start local 4 11: goto 15
12: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.x:[J
iload 4
dup2
laload
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.direction:[[J
iload 4
aaload
iload 2
laload
lxor
lastore
13: aload 1
iload 4
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.x:[J
iload 4
laload
l2d
getstatic org.apache.commons.math3.random.SobolSequenceGenerator.SCALE:D
ddiv
dastore
14: iinc 4 1
StackMap locals:
StackMap stack:
15: iload 4
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.dimension:I
if_icmplt 12
end local 4 16: aload 0
dup
getfield org.apache.commons.math3.random.SobolSequenceGenerator.count:I
iconst_1
iadd
putfield org.apache.commons.math3.random.SobolSequenceGenerator.count:I
17: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/commons/math3/random/SobolSequenceGenerator;
1 18 1 v [D
5 18 2 c I
6 18 3 value I
11 16 4 i I
public double[] skipTo(int);
descriptor: (I)[D
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=13, args_size=2
start local 0 start local 1 0: iload 1
ifne 3
1: aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.x:[J
lconst_0
invokestatic java.util.Arrays.fill:([JJ)V
2: goto 20
3: StackMap locals:
StackMap stack:
iload 1
iconst_1
isub
istore 2
start local 2 4: iload 2
iload 2
iconst_1
ishr
ixor
i2l
lstore 3
start local 3 5: iconst_0
istore 5
start local 5 6: goto 19
7: StackMap locals: int long int
StackMap stack:
lconst_0
lstore 6
start local 6 8: iconst_1
istore 8
start local 8 9: goto 16
10: StackMap locals: long int
StackMap stack:
lload 3
iload 8
iconst_1
isub
lshr
lstore 9
start local 9 11: lload 9
lconst_0
lcmp
ifne 13
12: goto 17
13: StackMap locals: long
StackMap stack:
lload 9
lconst_1
land
lstore 11
start local 11 14: lload 6
lload 11
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.direction:[[J
iload 5
aaload
iload 8
laload
lmul
lxor
lstore 6
end local 11 end local 9 15: iinc 8 1
StackMap locals:
StackMap stack:
16: iload 8
bipush 52
if_icmple 10
end local 8 17: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.x:[J
iload 5
lload 6
lastore
end local 6 18: iinc 5 1
StackMap locals:
StackMap stack:
19: iload 5
aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.dimension:I
if_icmplt 7
end local 5 end local 3 end local 2 20: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.apache.commons.math3.random.SobolSequenceGenerator.count:I
21: aload 0
invokevirtual org.apache.commons.math3.random.SobolSequenceGenerator.nextVector:()[D
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/apache/commons/math3/random/SobolSequenceGenerator;
0 22 1 index I
4 20 2 i I
5 20 3 grayCode J
6 20 5 j I
8 18 6 result J
9 17 8 k I
11 15 9 shift J
14 15 11 ik J
Exceptions:
throws org.apache.commons.math3.exception.NotPositiveException
MethodParameters:
Name Flags
index final
public int getNextIndex();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.math3.random.SobolSequenceGenerator.count:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/random/SobolSequenceGenerator;
}
SourceFile: "SobolSequenceGenerator.java"