[Insight-users] Element-wise Vector Multiplication?

Bill Lorensen bill.lorensen at gmail.com
Wed Apr 29 16:21:45 EDT 2009


The vnl_vector method element_product does it.


On Tue, Apr 28, 2009 at 1:49 PM, Kon Z <mnkz at comp.leeds.ac.uk> wrote:
> Hello All,
>
> I'm wondering if there's a straightforward way of doing element-wise vector
> multiplication like in Matlab? As in:
>
> [1 2 3] .* [2 4 6] = [2 8 18]
>
> I did try looking at VXL code, but nothing jumped out at me...
>
> Regards,
> Kon
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list