Boost logo

Ublas :

From: Karl Meerbergen (Karl.Meerbergen_at_[hidden])
Date: 2007-03-28 17:46:50


Quoting Gunter Winkler <guwi17_at_[hidden]>:
> Am Mittwoch, 28. März 2007 23:23 schrieb Karl Meerbergen:
> > Quoting Gunter Winkler <guwi17_at_[hidden]>:
> > > Am Mittwoch, 28. März 2007 23:06 schrieb Karl Meerbergen:
> > > > Hi,
> > > >
> > > > The bindings do no longer compile since the functions one1 and
> > >
> > > one2
> > >
> > > > do longer exist in the matrix functor_type. Can someone tell
> me
> > > > whether this still exists in another name?
> > >
> > > Do you remember what one1 and one2 mean?
> >
> > No idea. I did write the ublas bindings, but I guess you are
> right:
> > it is distance_i or ditance_j. I will try those.
>
> The diff of functional.hpp from 1.37 to 1.38 shows:
>
> row-major:
>
> static
> BOOST_UBLAS_INLINE
> - size_type one1 (size_type /* size1 */, size_type size2) {
> - return size2;
> - }
>
> - static
> - BOOST_UBLAS_INLINE
> - size_type one2 (size_type /* size1 */, size_type /* size2
> */) {
> - return 1;
> - }
>
> column-major:
>
> static
> BOOST_UBLAS_INLINE
> - size_type one1 (size_type /* size1 */, size_type /* size2
> */) {
> - return 1;
> - }
> - static
> - BOOST_UBLAS_INLINE
> - size_type one2 (size_type size1, size_type /* size2 */) {
> - return size1;
> - }
>
> so one1 and one2 are now
>
> one1 == address( 1, size1, 0, size2) - address(0, size1, 0, size2);
> one2 == address( 0, size1, 1, size2) - address(0, size1, 0, size2);
>
> Do you agree?

This is possibly correct. I think that a simpler solution is to add this
information in an orientation dependent traits class (similar to the
size_m, size2 problem that we had earlier on).

Karl
>
> mfg
> Gunter
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
>
>