Skip to content

Commit 9439bf6

Browse files
committed
Matrix:
* Fixed hashCode()
1 parent 6899413 commit 9439bf6

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

bin/jama2/Matrix.class

7.16 KB
Binary file not shown.

src/jama2/Matrix.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -938,12 +938,7 @@ public int getRowDimension()
938938
@Override
939939
public int hashCode()
940940
{
941-
final int prime = 31;
942-
int result = 1;
943-
result = prime * result + Arrays.hashCode(this.A);
944-
result = prime * result + this.m;
945-
result = prime * result + this.n;
946-
return result;
941+
return Arrays.deepHashCode(this.A);
947942
}
948943

949944
/**

0 commit comments

Comments
 (0)