Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3bf555b

Browse filesBrowse files
committed
Add class SymRandom for random number generation
1 parent a42e228 commit 3bf555b
Copy full SHA for 3bf555b

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Open diff view settings
Collapse file

‎src/symjava/test/TestSymbolic.java‎

Copy file name to clipboardExpand all lines: src/symjava/test/TestSymbolic.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,11 @@ public static void testMatrixVector() {
457457

458458
}
459459

460+
public static void testSymRandom() {
461+
BytecodeFunc f = JIT.compile(new SymRandom());
462+
System.out.println(f.apply());
463+
}
464+
460465
public static void main(String[] args) {
461466
//eclipse不能编译的问题:cmd进到某个class目录后,该目录不允许删除,
462467
//导致eclipse不能删除该目录,所以不能编译
@@ -474,6 +479,7 @@ public static void main(String[] args) {
474479
// testLogic();
475480

476481
//set vm parameters: -XX:+PrintCompilation
477-
testJITVectorized();
482+
//testJITVectorized();
483+
testSymRandom();
478484
}
479485
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.