> OK, all working now:
>
m = p.Matrix(10,10,1.0)
p.Assign(m[0:5,0:5], p.Matrix(5,5,5.0)).execute(); m.value
>
> array([[ 5., 5., 5., 5., 5., 1., 1., 1., 1., 1.],
> [ 5., 5., 5., 5., 5., 1., 1., 1., 1., 1.],
> [ 5., 5., 5., 5., 5., 1., 1., 1., 1.
OK, all working now:
>>> m = p.Matrix(10,10,1.0)
>>> p.Assign(m[0:5,0:5], p.Matrix(5,5,5.0)).execute(); m.value
array([[ 5., 5., 5., 5., 5., 1., 1., 1., 1., 1.],
[ 5., 5., 5., 5., 5., 1., 1., 1., 1., 1.],
[ 5., 5., 5., 5., 5., 1., 1., 1., 1., 1.],
[
Hi Karl,
Karl Rupp writes:
> Sure. Could you please derive some simple test case from
> examples/tutorial/matrix-range.cpp with slices in order to find the
> cause of the issue? You should be able to implement the submatrix proxy
> described above in a straight-forward manner *and* get correct
Hi Toby,
> I'm currently trying to implement matrix and vector proxies in
> PyViennaCL, and I can't get my matrices to look right. Suppose I have
> the following arbitrary 5x5 matrix, as displayed in Python:
>
m.value
> array([[ 1., 2., 3., 4., 0.],
> [ 5., 6., 7., 0.