Let us say you have an old variable and you want to re-initialize it to view some other data. For this task, you can use the member function reference():
#include <rw/math/mathvec.h> int main() { RWMathVec<double> a, b, c; . . . a.reference(b + c); } |
This produces exactly the same results as:
#include <rw/math/mathvec.h> int main() { RWMathVec<double> b, c; . . . RWMathVec<double> a = b + c; } |
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.