Boost logo

Glas :

Re: [glas] Concept C++ [was Re: back to business}

From: Karl Meerbergen (karl.meerbergen_at_[hidden])
Date: 2006-11-22 09:14:25


I see an immediate application of concept_map: glas::dense_vector
becomes a EuclideanVectorspace, e.g.

template <typename T>
concept_map EuclideanVectorspace< dense_vector<T> > {
  real_type norm() const {
    return norm_2(v) ;
  }

  T operator*( dense_vector<T> const& v ) const {
    return dot( conj(*this), v ) ;
  }
} ;

etc.

On Wed, 2006-11-22 at 14:52 +0100, Ian McCulloch wrote:
> On Wed, 22 Nov 2006, Karl Meerbergen wrote:
>
> > I think we should consider this. Is concept-gcc stable now?
>
> I think it is, although last time I checked there were some issues with
> compile times that ought to go away in the final version. Aside from
> spending a few hours reading the proposal, I have never used concept gcc.
> Maybe someone else on this list has? My impression was though, it would
> be the killer feature for linear algebra libs.
>
> Cheers,
> Ian
>
>
> >
> >
> > On Wed, 2006-11-22 at 14:36 +0100, Ian McCulloch wrote:
> > > Hi Karl, Toon,
> > >
> > > Have you considered using Concept-GCC ?
> > > http://www.generic-programming.org/languages/conceptcpp/
> > >
> > > Ian
> > >
> > > _______________________________________________
> > > glas mailing list
> > > glas_at_[hidden]
> > > http://lists.boost.org/mailman/listinfo.cgi/glas
> > --
> > Karl Meerbergen
> > Katholieke Universiteit Leuven
> > Department of Computer Science
> >
> > E-mail: karl.meerbergen_at_[hidden]
> > URL : http://www.cs.kuleuven.be/cwis/research/nalag/
> > Phone : +32 16 327700 (secretary)
> > Fax : +32 16 327996
> >
> > _______________________________________________
> > glas mailing list
> > glas_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/glas
> >
> >
> _______________________________________________
> glas mailing list
> glas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/glas

-- 
Karl Meerbergen
Katholieke Universiteit Leuven
Department of Computer Science
E-mail: karl.meerbergen_at_[hidden]
URL   : http://www.cs.kuleuven.be/cwis/research/nalag/
Phone : +32 16 327700 (secretary)
Fax   : +32 16 327996