> 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 > <pyviennacl.pycore.Matrix object at 0x7f88e23243d0> > 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.], > [ 5., 5., 5., 5., 5., 1., 1., 1., 1., 1.], > [ 5., 5., 5., 5., 5., 1., 1., 1., 1., 1.], > [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], > [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], > [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], > [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], > [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]]) > > :)
Hurray, very nice :-) Best regards, Karli ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ ViennaCL-devel mailing list ViennaCL-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/viennacl-devel