Changeset 1568 for branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/substitution/TriangleMatrix.java
- Timestamp:
- 06/18/14 08:59:41 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/substitution/TriangleMatrix.java
r1558 r1568 3 3 public class TriangleMatrix { 4 4 5 private float[] matrix;5 private double[] matrix; 6 6 private int size; 7 7 8 8 public TriangleMatrix(int size) { 9 9 this.size = size; 10 matrix = new float[size*(size+1)/2];10 matrix = new double [size*(size+1)/2]; 11 11 } 12 12 13 public floatget(int first, int second) {13 public double get(int first, int second) { 14 14 int row = Math.min(first, second); 15 15 int col = Math.max(first, second); … … 18 18 } 19 19 20 public void set(int first, int second, floatvalue) {20 public void set(int first, int second, double value) { 21 21 int row = Math.min(first, second); 22 22 int col = Math.max(first, second);
Note: See TracChangeset
for help on using the changeset viewer.