ForneyLab.jl icon indicating copy to clipboard operation
ForneyLab.jl copied to clipboard

Add support for indexing with tuples to `placeholder`

Open ivan-bocharov opened this issue 6 years ago • 0 comments

Currently placeholder function only accepts integer indices. It is convenient to index multidimensional data column-wise or row-wise (see e.g. #17).

An example that will index data column-wise:

for t = 1:T
    ...
    placeholder(y[t], :y, dims=(obs_dim,), index=(:, t))
    ...
end 

ivan-bocharov avatar Feb 05 '19 10:02 ivan-bocharov