Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Suppose I want to divide a value equally, and then add these values together and store them in an array. For example, 90 is divided into 3 equal parts, and the cumulative result is [30, 60, 90]. I can do this in Python:
v = 90 # value
max = 3 # max_iterations
i = 1 # current_index
step = i/max
degrees = [] # output array
while i <= max:
degree = step*v*i
degrees.append(degree)
i += 1
print(degrees)
# Result: [30.0, 60.0, 90.0] #But how to do this in bifrost?
My graph is not working...
outside:
inside
I got warning:
"output", Warnings: - array Warning: while compiling top level compound "bifrostGraphShape1", around the port 'bifrostGraphShape1::iterate.array': no promotion exists from a value of type 'array<float>' to a value of type 'float'
why?
Solved! Go to Solution.