Boost logo

Ublas :

From: Eddie.Vedder_at_[hidden]
Date: 2005-10-20 09:44:16


Dear list,

I try to write my own class vector3d inherited from ublas::vector as
proposed at
http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Effective_UBLAS.
How can I assign an element of the vector within the constructor? I tried to
operator () and data(), but both didn't work.

Example:
vector3d( double x, double y, double z )
{
  operator () (0) = x;
  data () [0] = x;
}

Can anybody help?

Ed

-- 
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie