-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Might be a misunderstanding on my part, but I'd expect the below to work:
from dwave.optimization.mathematical import maximum
from dwave.optimization.model import Model
model = Model()
zero = model.constant(0)
one = model.constant(1)
data = model.constant([1, 1])
max = maximum(zero, one)
data[max:] # works fine if you omit the : hereFile "dwave/optimization/symbols.pyx", line 604, in dwave.optimization.symbols.BasicIndexing.cppslice
TypeError: 'dwave.optimization.symbols.Maximum' object cannot be interpreted as an integer
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request