Access to components. Dim and Data return the

virtual int Dim() const
Dim returns dimension of space.
Data
Data returns access to the array of components, which is assumed to exist or to be created for this purpose
virtual double Component( int i ) const
Returns value, does not permit change of data array.
virtual double& Component( int i )
Returns reference, permits change of data array.
dimension of the data and a pointer to the internal data array, respectively. Efficient access to the data of the vector object is usually most easily implemented using these two functions. The componentwise access methods (the two forms of Component) are provided in anticipation of popular demand, but we recommend against their use. Just as in Matlab, your algorithm will run faster if you use the array intrinsics rather than loop over component references. In other words, don't use these if you can help it!!!

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de