[Insight-users] Doing elementwise multiplication in vnl

Luis Ibanez luis.ibanez at kitware.com
Mon Jan 15 11:06:52 EST 2007


Hi Arne,


The joy of Open Source:


$ grep "element-wise" *
vnl_matrix_fixed.h:  // element-wise.
vnl_matrix_fixed_ref.h:  // element-wise.
vnl_vector.txx:/* element-wise */ \


Please look at


   Insight/Utilities/vxl/core/vnl/vnl_vector.txx


in lines 606:

template<class T>
vnl_vector<T>
element_product ( vnl_vector<T> const& v1,
                   vnl_vector<T> const& v2)



  Regards,


     Luis


------------------
Arne Hansen wrote:
> Hello.
> Is it possible to do elementwise multiplications in vnl?
> I have searching the documentation and google, but i had no luck.
> Can it be done?
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list