Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public MapMatrix(HashMap<Long, Vec> mapMatrix) {
}

public Vector getRow(int idx) {
return mapMatrix.get(idx);
return mapMatrix.get((long) idx);
}

public Vector getRow(long idx) {
Expand All @@ -47,7 +47,7 @@ public Vector getRow(long idx) {
public HashMap<Long, Vec> getRows(int[] idx) {
HashMap<Long, Vec> matrix = new HashMap();
for (int id : idx) {
matrix.put((long) id, mapMatrix.get(id));
matrix.put((long) id, mapMatrix.get((long) id));
}
return matrix;
}
Expand Down