Re: [eigen] min(Arr1,Arr2) is it supposed to work? |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] min(Arr1,Arr2) is it supposed to work?*From*: Joel Falcou <joel.falcou@xxxxxx>*Date*: Mon, 04 Apr 2011 17:06:48 +0200

On 04/04/11 17:07, Helmut Jarausch wrote:

I've always wondered why the functions should live in the std namespace. Isn't it possible to define a template for min in the namespace Eigen requiring the user to use Eigen::min (or a using instruction)? Helmut.

Users should do the following: - pull std::min in current scope using 'usign std::min' - call min unqualified

it is always a godo idea to rely on ADL in these cases. So if Eigen provides min in namespace Eigen for types living in namespace Eigen, nothing is required.

**References**:**[eigen] min(Arr1,Arr2) is it supposed to work?***From:*Helmut Jarausch

**Re: [eigen] min(Arr1,Arr2) is it supposed to work?***From:*Gael Guennebaud

**Re: [eigen] min(Arr1,Arr2) is it supposed to work?***From:*Karl Rupp

**Re: [eigen] min(Arr1,Arr2) is it supposed to work?***From:*Gael Guennebaud

**Re: [eigen] min(Arr1,Arr2) is it supposed to work?***From:*Helmut Jarausch

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] min(Arr1,Arr2) is it supposed to work?** - Next by Date:
**[eigen] Valid use case for creating a SparseMatrix?** - Previous by thread:
**Re: [eigen] min(Arr1,Arr2) is it supposed to work?** - Next by thread:
**Re: [eigen] min(Arr1,Arr2) is it supposed to work? [again]**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |