Skip to content

Commit c761d8f

Browse files
committed
debug alen/blen replacement on vector-vector primitives
1 parent 7b5ccc5 commit c761d8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/sysds/hops/codegen/cplan/CNodeBinary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public String codegen(boolean sparse, GeneratorAPI api) {
191191
(_type == BinType.VECT_MATRIXMULT ? varj : varj + ".vals(0)")) :
192192
_inputs.get(j).getDataType() == DataType.MATRIX ? (api == GeneratorAPI.JAVA ? varj : varj + ".vals(0)") : varj);
193193

194-
tmp = tmp.replace("%SLEN"+(j+1)+"%", varj.startsWith("STMP") ? varj+".size()" : j == 0 ? "alen" : "blen");
194+
tmp = tmp.replace("%SLEN"+(j+1)+"%", varj.startsWith("STMP") ? varj+".size()" : varj.startsWith("a") ? "alen" : "blen");
195195

196196
//replace start position of main input
197197
tmp = tmp.replace("%POS"+(j+1)+"%", (_inputs.get(j) instanceof CNodeData

0 commit comments

Comments
 (0)