davideC00
davideC00
Hi, there is an issue in the highlighted phrase:  If $`x_i \in \{0,1\}`$, the conditional distribution in the equation 12.27 is $σ(2J(a_i-d_i))$. I think the problem is that the...
```python @cfunc(intc(CPointer(float64), intp, CPointer(float64), voidptr)) def function(values_ptr, len_values, result, data): ... weights = carray(data, (1,), double)[0] ... weights = [0.6, 0.8, 0.4] seq = ctypes.c_double * len(weights) arr = seq(*weights)...