git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branch 'origin/bug/JAL-3082selectRegex' into merge/JAL-3082
[jalview.git]
/
src
/
jalview
/
math
/
SparseMatrix.java
diff --git
a/src/jalview/math/SparseMatrix.java
b/src/jalview/math/SparseMatrix.java
index
86592a0
..
e24cda5
100644
(file)
--- a/
src/jalview/math/SparseMatrix.java
+++ b/
src/jalview/math/SparseMatrix.java
@@
-45,11
+45,8
@@
public class SparseMatrix extends Matrix
*/
public SparseMatrix(double[][] v)
{
- rows = v.length;
- if (rows > 0)
- {
- cols = v[0].length;
- }
+ super(v.length, v.length > 0 ? v[0].length : 0);
+
sparseColumns = new SparseDoubleArray[cols];
/*