We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 050624a commit a3553efCopy full SHA for a3553ef
arrayfire/broadcast.py
@@ -8,17 +8,19 @@
8
########################################################
9
10
11
-class bcast(object):
+class _bcast(object):
12
_flag = False
13
- def get():
+ def get(self):
14
return bcast._flag
15
16
- def set(flag):
+ def set(self, flag):
17
bcast._flag = flag
18
19
- def toggle():
+ def toggle(self):
20
bcast._flag ^= True
21
22
+bcast = _bcast()
23
+
24
def broadcast(func, *args):
25
26
def wrapper(*func_args):
0 commit comments