Skip to content

Commit 9cf3779

Browse files
authored
Merge pull request #34 from ryanhamilton/use-latest-libraries
use-latest-libraries
2 parents b2e83b2 + f7a38ed commit 9cf3779

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

java/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<dependency>
1010
<groupId>org.jblas</groupId>
1111
<artifactId>jblas</artifactId>
12-
<version>1.2.3</version>
12+
<version>1.2.4</version>
1313
</dependency>
1414
<dependency>
15-
<groupId>com.googlecode.efficient-java-matrix-library</groupId>
16-
<artifactId>ejml</artifactId>
17-
<version>0.23</version>
15+
<groupId>org.ejml</groupId>
16+
<artifactId>ejml-simple</artifactId>
17+
<version>0.37.1</version>
1818
</dependency>
1919
</dependencies>
2020
<build>

java/src/main/java/PerfPure.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ protected double sinc_sum(int n) {
170170
}
171171

172172
private double randmatmul(int i) {
173-
SimpleMatrix a = SimpleMatrix.random(i, i, -1d, +1d, rand);
174-
SimpleMatrix b = SimpleMatrix.random(i, i, -1d, +1d, rand);
173+
SimpleMatrix a = SimpleMatrix.random_DDRM(i, i, -1d, +1d, rand);
174+
SimpleMatrix b = SimpleMatrix.random_DDRM(i, i, -1d, +1d, rand);
175175
return a.mult(b).get(0);
176176
}
177177

@@ -182,10 +182,10 @@ private double[] randmatstat(int t) {
182182
SimpleMatrix v = new SimpleMatrix(new double[t][1]); //zeros(t,1);
183183
SimpleMatrix w = new SimpleMatrix(new double[t][1]); //zeros(t,1);
184184
for (int i=0; i < t; i++) {
185-
SimpleMatrix a = SimpleMatrix.random(n, n, -1d, +1d, rand);
186-
SimpleMatrix b = SimpleMatrix.random(n, n, -1d, +1d, rand);
187-
SimpleMatrix c = SimpleMatrix.random(n, n, -1d, +1d, rand);
188-
SimpleMatrix d = SimpleMatrix.random(n, n, -1d, +1d, rand);
185+
SimpleMatrix a = SimpleMatrix.random_DDRM(n, n, -1d, +1d, rand);
186+
SimpleMatrix b = SimpleMatrix.random_DDRM(n, n, -1d, +1d, rand);
187+
SimpleMatrix c = SimpleMatrix.random_DDRM(n, n, -1d, +1d, rand);
188+
SimpleMatrix d = SimpleMatrix.random_DDRM(n, n, -1d, +1d, rand);
189189

190190
p.combine(0, 0*n, a);
191191
p.combine(0, 1*n, b);

0 commit comments

Comments
 (0)