SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Handles the case of a reference to an element that may have to be negated. More...
#include <rw/lapack/mat.h>
Public Member Functions | |
RWNGRef (TypeT &x, bool ng=false) | |
RWNGRef< TypeT > & | operator= (TypeT x) |
operator TypeT () |
RWNGRef<T> handles the case of a reference to an element that may have to be negated. It is used by the RWSkewMat<T> matrix class.
Builds a reference to x. The parameter ng indicates if the reference should be negated.
RWNGRef< TypeT >::operator TypeT | ( | ) | [inline] |
This type conversion operator is invoked by the compiler as necessary to return the value referenced by the class for use as a right-side value. It may have to modify the value as necessary (for example, to take its conjugate).
This function changes the value referenced by the class to the value x, after modifying x if necessary (for example, by taking its conjugate). If the reference is supposed to be read-only, a runtime error occurs.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.