We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 826bcfc commit cb7e55aCopy full SHA for cb7e55a
com/arrayfire/Array.java
@@ -145,7 +145,7 @@ public int[] dims() {
145
return getDims(ref);
146
}
147
148
- public ArrayFire.Type type() throws Exception {
+ public ArrayFire.Type type() {
149
return ArrayFire.Type.fromInt(getType(ref));
150
151
@@ -199,6 +199,10 @@ public boolean[] getBooleanArray() throws Exception {
199
return Data.getBooleanArray(this);
200
201
202
+ public boolean isBool() {
203
+ return type() == ArrayFire.Type.Boolean;
204
+ }
205
+
206
@Override
207
public String toString() {
208
return afToString(ref, "No name");
0 commit comments