Skip to content
Snippets Groups Projects
Commit d7430d74 authored by stepan's avatar stepan
Browse files

Fix: isSquareMatrix checks dims.length == 2 not >= 2.

parent 878abcde
No related branches found
No related tags found
No related merge requests found
......@@ -664,7 +664,7 @@ public final class SpecialAttributesFunctions {
public final boolean isSquareMatrix(RAbstractVector vector) {
RIntVector dims = (RIntVector) execute(vector);
if (nullDimsProfile.profile(dims == null) || dims.getLength() < 2) {
if (nullDimsProfile.profile(dims == null) || dims.getLength() != 2) {
return false;
}
return dims.getDataAt(0) == dims.getDataAt(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment