Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion libraries/matrixlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def fillMatrixForm(sq: list, sh: list) -> list:
result = []
prod: int = ocl.prd(ocl.tail(sh))
for i in range(sh[0]):
rowi: list = MatrixLib.fillMatrixForm(ocl.listSubrange(sq, prod * (i - 1), (prod * i) - 1), ocl.tail(sh))
rowi: list = MatrixLib.fillMatrixForm(ocl.sequenceSubrange(sq, 1 + prod * (i - 1), (prod * i)), ocl.tail(sh))
result.append(rowi)
return result

Expand Down
2 changes: 1 addition & 1 deletion libraries/ocl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ def values(m) :
# print(pp)

# ss = [1, 4, 6, 7, 2]
# print(listSubrange(ss, 2, -1))
# print(sequenceSubrange(ss, 2, -1))

# mp = dict({"a": 1, "b": 2})

Expand Down
2 changes: 1 addition & 1 deletion libraries/ocljs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ static values(m)
// var pp = setSubrange(ss, 3, 5, "and");

// var ss = [1, 4, 6, 7, 2];
// alert(listSubrange(ss, 2, -1));
// alert(sequenceSubrange(ss, 2, -1));

// var mp = new Map([["a", 1], ["b", 2]]);

Expand Down