dimod.CaseLabelDQM.get_linear#
- CaseLabelDQM.get_linear(v)[source]#
The linear biases associated with variable v.
- Parameters:
v – A variable in the discrete quadratic model, or a unique case label.
- Returns:
- The linear biases. If v is a variable, returns a NumPy array of
size
num_cases(v)()
by 1.If v is a unique case label, returns a float.