Skip to content

Commit 826bcfc

Browse files
ShadyBoukharyumar456
authored andcommitted
Added span() to Seq
1 parent b65f7a3 commit 826bcfc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

com/arrayfire/Seq.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Seq extends AFLibLoader {
1414
private double step;
1515

1616
private long size;
17-
private boolean gfor; // always false until implemented
17+
protected boolean gfor; // always false until implemented
1818

1919
public Seq() {
2020
this(0);
@@ -46,6 +46,14 @@ public Seq(Seq other) {
4646
set(other);
4747
}
4848

49+
protected static Seq span() {
50+
try {
51+
return new Seq(1, 1, 0); // will never throw
52+
} catch (Exception ex) {
53+
return null;
54+
}
55+
}
56+
4957
public void set(Seq other) {
5058
init(other.begin, other.end, other.step);
5159
}

0 commit comments

Comments
 (0)