Hey,

 > So I've implemented a PyViennaCL translation of the blas3_prod test, but
> I'm having difficulties with OPERATION_UNARY_FABS_TYPE. If I construct
> an OPERATION_UNARY_FABS_TYPE node with just a DENSE_ROW_MATRIX as a
> leaf, then everything passes as expected. But if I try and execute
> OPERATION_UNARY_FABS_TYPE on a composite node, of type
> OPERATION_BINARY_SUB_TYPE, then I get unexpected results. Note that the
> dense matrix that works is simply constructed as the explicit
> subtraction of the same two matrices that don't work when passed as a
> complex expression!
>
> That is, in PyViennaCL,
>
> `p.ElementFabs(p.Matrix(a.as_ndarray() - b.as_ndarray())).value` is not
> equal to `p.ElementFabs(a - b).value`*. I don't think this has anything
> to do with the change I just made to master (before that, I just got a
> segfault) -- but I am not sure.
>
> * `(a - b).value` /is/ equal to `(a.as_ndarray() - b.as_ndarray())`, so it's
>    not the subtraction that's wrong...
>
> I'm not sure what's going on...

I'm not entirely sure either, but I'll have a look at it.

Best regards,
Karli


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
ViennaCL-devel mailing list
ViennaCL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viennacl-devel

Reply via email to