SourcePro® API Reference Guide

 
List of all members | Public Member Functions
RWCJRef< TypeT > Class Template Reference

Used by the RWHermMat classes to reference data that may need to be conjugated. More...

#include <rw/lapack/mat.h>

Public Member Functions

 RWCJRef (TypeT &x, bool cj=false)
 
 operator TypeT ()
 
RWCJRef< TypeT > & operator= (TypeT x)
 

Detailed Description

template<class TypeT>
class RWCJRef< TypeT >

RWCJRef is used by the RWHermMat classes to reference data that may need to be conjugated.

Constructor & Destructor Documentation

template<class TypeT >
RWCJRef< TypeT >::RWCJRef ( TypeT &  x,
bool  cj = false 
)
inline

Builds a reference to x. The parameter cj indicates if the reference should be conjugated.

Member Function Documentation

template<class TypeT >
RWCJRef< 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).

template<class TypeT >
RWCJRef<TypeT>& RWCJRef< TypeT >::operator= ( TypeT  x)
inline

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 © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.