OpenWareLaboratory
ComplexFloatArray Class Reference

Public Member Functions

void add (ComplexFloatArray operand2, ComplexFloatArray destination)
 Element-wise sum between complex arrays. More...
 
void add (ComplexFloatArray operand2)
 In-place element-wise sum between complex arrays. More...
 
void clear ()
 
void complexByComplexMultiplication (ComplexFloatArray operand2, ComplexFloatArray result)
 Complex by complex multiplication between arrays. More...
 
void complexByRealMultiplication (FloatArray operand2, ComplexFloatArray result)
 Complex by real multiplication between arrays. More...
 
void complexDotProduct (ComplexFloatArray operand2, ComplexFloat &result)
 Complex dot product between arrays. More...
 
 ComplexFloatArray ()
 Constructor Initializes size to 0. More...
 
 ComplexFloatArray (ComplexFloat *array, size_t size)
 Constructor. More...
 
void copyFrom (FloatArray source)
 Copies the content of an array into another array. More...
 
void copyFrom (ComplexFloatArray source)
 Copies the content of a FloatArray into the ComplexFloatArray. More...
 
void copyFrom (ComplexFloat *source, size_t length)
 Copies an array of ComplexFloat into the array. More...
 
void copyTo (FloatArray destination)
 Copies the content of the ComplexFloatArray into a FloatArray. More...
 
void copyTo (ComplexFloatArray destination)
 Copies the content of the array to another array. More...
 
void copyTo (ComplexFloat *destination, size_t length)
 Copies an array of ComplexFloat into the array. More...
 
bool equals (const ComplexFloatArray other) const
 Compares two arrays. More...
 
void getComplexConjugateValues (ComplexFloatArray destination)
 The complex conjugate values of the element of the array. More...
 
ComplexFloatgetData ()
 Get the data stored in the ComplexFloatArray. More...
 
void getImaginaryValues (FloatArray buf)
 Get the imaginary part of the elements of the array. More...
 
void getMagnitudeSquaredValues (FloatArray destination)
 The squared magnitudes of the elements of the array. More...
 
void getMagnitudeValues (FloatArray destination)
 The magnitudes of the elements of the array. More...
 
int getMaxMagnitudeIndex ()
 The index of the element with the maximum magnitude in the array. More...
 
float getMaxMagnitudeValue ()
 The value of the element with the maximum magnitude in the array. More...
 
void getPhaseValues (FloatArray destination)
 The phases of the elements of the array. More...
 
void getPolar (FloatArray magnitude, FloatArray phase)
 Get polar coordinates for all the elements in the array. More...
 
void getRealValues (FloatArray buf)
 Get the real part of the elements of the array. More...
 
size_t getSize () const
 
float im (const int i)
 The imaginary part of an element of the array. More...
 
float mag (const int i)
 The magnitude of an element of the array. More...
 
float mag2 (const int i)
 The magnitude squared of an element of the array. More...
 
 operator ComplexFloat * ()
 Casting operator to ComplexFloat*. More...
 
 operator float * ()
 Casting operator to float*. More...
 
ComplexFloatoperator[] (const int index)
 Allows to index the array using array-style brackets. More...
 
ComplexFloatoperator[] (const int i) const
 Allows to index the array using array-style brackets. More...
 
float re (const int i)
 The real part of an element of the array. More...
 
void scale (float factor)
 Array by scalar multiplication. More...
 
void setAll (ComplexFloat value)
 Set all the elements in the array. More...
 
void setAll (float value)
 Set all the elements in the array. More...
 
void setAll (float valueRe, float valueIm)
 Set all the elements in the array. More...
 
void setMagnitude (FloatArray magnitude)
 Set the magnitude of the elements of the array, leaving the phase unchanged. More...
 
void setMagnitude (FloatArray magnitude, int offset, size_t count)
 Set the magnitude of a range of elements of the array, leaving the phase unchanged. More...
 
void setMagnitude (FloatArray magnitude, ComplexFloatArray destination)
 Set the magnitude of the elements of an array, using the phase from the current array. More...
 
void setMagnitude (FloatArray magnitude, int offset, size_t count, ComplexFloatArray destination)
 Set the magnitude of a range of the elements of an array, using the phases from the current array. More...
 
void setPhase (FloatArray phase)
 Set the phase of the elements of the array, leaving the magnitude unchanged. More...
 
void setPhase (FloatArray phase, int offset, size_t count)
 Set the phase of a range of elements of the array, leaving the magnitude unchanged. More...
 
void setPhase (FloatArray phase, ComplexFloatArray destination)
 Set the phase of the elements of an array, using the magnitude from the current array. More...
 
void setPhase (FloatArray phase, int offset, size_t count, ComplexFloatArray destination)
 Set the phase of a range of the elements of an array, using the magnitude from the current array. More...
 
void setPolar (FloatArray magnitude, FloatArray phase)
 Set all the elements in the array using polar coordinates. More...
 
void setPolar (FloatArray magnitude, FloatArray phase, int offset, size_t count)
 Set a range of elements in the array using polar coordinates. More...
 
ComplexFloatArray subArray (int offset, size_t length)
 A subset of the array. More...
 
void subtract (ComplexFloatArray operand2, ComplexFloatArray destination)
 Element-wise difference between complex arrays. More...
 
void subtract (ComplexFloatArray operand2)
 In-place element-wise difference between complex arrays. More...
 

Static Public Member Functions

static ComplexFloatArray create (size_t size)
 Creates a new ComplexFloatArray. More...
 
static void destroy (ComplexFloatArray)
 Destroys a ComplexFloatArray created with the create() method. More...
 

Detailed Description

Definition at line 70 of file ComplexFloatArray.h.

Constructor & Destructor Documentation

ComplexFloatArray::ComplexFloatArray ( )
inline

Constructor Initializes size to 0.

Definition at line 78 of file ComplexFloatArray.h.

Referenced by create(), and subArray().

ComplexFloatArray::ComplexFloatArray ( ComplexFloat array,
size_t  size 
)
inline

Constructor.

Parameters
arrayA pointer to an array of ComplexFloat
sizeThe length of the rray

Definition at line 86 of file ComplexFloatArray.h.

Member Function Documentation

void ComplexFloatArray::add ( ComplexFloatArray  operand2,
ComplexFloatArray  destination 
)

Element-wise sum between complex arrays.

Sets each element in destination to the complex sum of the corresponding element of the array and operand2

Parameters
[in]operand2second operand for the sum
[out]destinationthe destination array

Definition at line 101 of file ComplexFloatArray.cpp.

References ASSERT, ComplexFloat::im, im(), ComplexFloat::re, and re().

Referenced by add().

void ComplexFloatArray::add ( ComplexFloatArray  operand2)

In-place element-wise sum between complex arrays.

Adds each element of operand2 to the corresponding element in the array.

Parameters
operand2second operand for the sum

Definition at line 113 of file ComplexFloatArray.cpp.

References add().

void ComplexFloatArray::clear ( )
inline

Definition at line 107 of file ComplexFloatArray.h.

References setAll().

void ComplexFloatArray::complexByComplexMultiplication ( ComplexFloatArray  operand2,
ComplexFloatArray  result 
)

Complex by complex multiplication between arrays.

Parameters
[in]operand2The second operand of the multiplication
[out]resultThe array where the result of the multiplication is stored
Note
When built for ARM Cortex-M processor series, this method uses the optimized CMSIS library

Definition at line 85 of file ComplexFloatArray.cpp.

References ASSERT.

void ComplexFloatArray::complexByRealMultiplication ( FloatArray  operand2,
ComplexFloatArray  result 
)

Complex by real multiplication between arrays.

Parameters
[in]operand2The second operand of the multiplication
[out]resultThe array where the result of the multiplication is stored
Note
When built for ARM Cortex-M processor series, this method uses the optimized CMSIS library

Definition at line 148 of file ComplexFloatArray.cpp.

References ASSERT, and FloatArray::getSize().

void ComplexFloatArray::complexDotProduct ( ComplexFloatArray  operand2,
ComplexFloat result 
)

Complex dot product between arrays.

Parameters
[in]operand2The second operand of the dot product
[out]resultThe array where the result of the dot product is stored
Note
When built for ARM Cortex-M processor series, this method uses the optimized CMSIS library

Definition at line 67 of file ComplexFloatArray.cpp.

References ComplexFloat::im, and ComplexFloat::re.

void ComplexFloatArray::copyFrom ( FloatArray  source)

Copies the content of an array into another array.

Parameters
[in]sourceThe source array

Definition at line 228 of file ComplexFloatArray.cpp.

References FloatArray::getSize(), ComplexFloat::im, min, and ComplexFloat::re.

Referenced by copyFrom(), ComplexFourierTransform::fft(), and ComplexFourierTransform::ifft().

void ComplexFloatArray::copyFrom ( ComplexFloatArray  source)

Copies the content of a FloatArray into the ComplexFloatArray.

Parameters
[in]sourceThe source array
Remarks
The size of the FloatArray must be twice the size of the ComplexFloatArray.

Definition at line 247 of file ComplexFloatArray.cpp.

References copyFrom(), getSize(), and min.

void ComplexFloatArray::copyFrom ( ComplexFloat source,
size_t  length 
)

Copies an array of ComplexFloat into the array.

Parameters
[in]sourceA pointer to the beginning of the portion of memory to read from.
[in]lengthNumber of samples to copy.
Note
When built for ARM Cortex-M processor series, this method uses the optimized CMSIS library

Definition at line 264 of file ComplexFloatArray.cpp.

References ASSERT, ComplexFloat::im, and ComplexFloat::re.

void ComplexFloatArray::copyTo ( FloatArray  destination)

Copies the content of the ComplexFloatArray into a FloatArray.

Parameters
[out]destinationThe destination array
Remarks
The size of the FloatArray must be twice the size of the ComplexFloatArray.

Definition at line 236 of file ComplexFloatArray.cpp.

References FloatArray::getSize(), min, and ComplexFloat::re.

Referenced by copyTo().

void ComplexFloatArray::copyTo ( ComplexFloatArray  destination)

Copies the content of the array to another array.

Parameters
[out]destinationThe destination array

Definition at line 243 of file ComplexFloatArray.cpp.

References copyTo(), getSize(), and min.

void ComplexFloatArray::copyTo ( ComplexFloat destination,
size_t  length 
)

Copies an array of ComplexFloat into the array.

Parameters
[in]destinationA pointer to the beginning of the portion of memory to write to.
[in]lengthNumber of samples to copy.
Note
When built for ARM Cortex-M processor series, this method uses the optimized CMSIS library

Definition at line 251 of file ComplexFloatArray.cpp.

References ASSERT, ComplexFloat::im, and ComplexFloat::re.

ComplexFloatArray ComplexFloatArray::create ( size_t  size)
static

Creates a new ComplexFloatArray.

Allocates size*sizeof(float) bytes of memory and returns a ComplexFloatArray that points to it.

Parameters
sizeThe size of the new ComplexFloatArray.
Returns
A ComplexFloatArray which data point to the newly allocated memory and size is initialized to the proper value.
Remarks
A ComplexFloatArray created with this method has to be destroyed invoking the ComplexFloatArray::destroy() method.

Definition at line 218 of file ComplexFloatArray.cpp.

References ComplexFloatArray().

Referenced by FourierPitchDetector::init(), FastFourierTransform::init(), and ComplexFourierTransform::init().

void ComplexFloatArray::destroy ( ComplexFloatArray  array)
static

Destroys a ComplexFloatArray created with the create() method.

Parameters
arrayThe ComplexFloatArray to be destroyed.
Remarks
The ComplexFloatArray object passed as an argument should not be used again after invoking this method.
A ComplexFloatArray object that has not been created by the ComplexFloatArray::create() method might cause an exception if passed as an argument to this method.

Definition at line 222 of file ComplexFloatArray.cpp.

Referenced by ComplexFourierTransform::~ComplexFourierTransform(), FastFourierTransform::~FastFourierTransform(), and FourierPitchDetector::~FourierPitchDetector().

bool ComplexFloatArray::equals ( const ComplexFloatArray  other) const
inline

Compares two arrays.

Performs an element-wise comparison of the values contained in the arrays.

Parameters
otherthe array to compare against.
Returns
true if the arrays have the same size and the value of each of the elements of the one match the value of the corresponding element of the other, or false otherwise.

Definition at line 297 of file ComplexFloatArray.h.

References getSize(), im(), and re().

void ComplexFloatArray::getComplexConjugateValues ( ComplexFloatArray  destination)

The complex conjugate values of the element of the array.

Parameters
[out]destinationThe array where the complex conjugate values will be stored.
Note
When built for ARM Cortex-M processor series, this method uses the optimized CMSIS library

Definition at line 133 of file ComplexFloatArray.cpp.

References ASSERT, and getSize().

ComplexFloat* ComplexFloatArray::getData ( )
inline

Get the data stored in the ComplexFloatArray.

Returns
a ComplexFloat* pointer to the data stored in the ComplexFloatArray

Definition at line 286 of file ComplexFloatArray.h.

Referenced by FastFourierTransform::fft(), ComplexFourierTransform::fft(), ComplexFourierTransform::ifft(), FastFourierTransform::ifft(), setMagnitude(), and setPhase().

void ComplexFloatArray::getImaginaryValues ( FloatArray  buf)

Get the imaginary part of the elements of the array.

Parameters
[out]bufThe array where the imaginary part will be stored.

Definition at line 200 of file ComplexFloatArray.cpp.

References ComplexFloat::im.

void ComplexFloatArray::getMagnitudeSquaredValues ( FloatArray  destination)

The squared magnitudes of the elements of the array.

Faster than getMagnitudeValues().

Parameters
[out]destinationThe array where the magnitude squared values will be stored.
Note
When built for ARM Cortex-M processor series, this method uses the optimized CMSIS library

Definition at line 40 of file ComplexFloatArray.cpp.

References ASSERT, FloatArray::getSize(), and mag2().

Referenced by FourierPitchDetector::computeFrequency().

void ComplexFloatArray::getMagnitudeValues ( FloatArray  destination)

The magnitudes of the elements of the array.

Parameters
[out]destinationThe array where the magnitude values will be stored.
Note
When built for ARM Cortex-M processor series, this method uses the optimized CMSIS library

Definition at line 16 of file ComplexFloatArray.cpp.

References mag().

int ComplexFloatArray::getMaxMagnitudeIndex ( )

The index of the element with the maximum magnitude in the array.

Returns
The index of the element with the maximum magnitude in the array.

Definition at line 164 of file ComplexFloatArray.cpp.

References mag2().

float ComplexFloatArray::getMaxMagnitudeValue ( )

The value of the element with the maximum magnitude in the array.

Returns
The maximum magnitude value in the array.

Definition at line 182 of file ComplexFloatArray.cpp.

References mag(), and mag2().

void ComplexFloatArray::getPhaseValues ( FloatArray  destination)

The phases of the elements of the array.

Parameters
[out]destinationThe array where the phase values will be stored.

Definition at line 61 of file ComplexFloatArray.cpp.

References ASSERT, and FloatArray::getSize().

void ComplexFloatArray::getPolar ( FloatArray  magnitude,
FloatArray  phase 
)

Get polar coordinates for all the elements in the array.

Parameters
[out]magnitudeAn array containing the magnitudes.
[out]phaseAn array containing the phases.

Definition at line 52 of file ComplexFloatArray.cpp.

References ASSERT, ComplexFloat::getMagnitude(), ComplexFloat::getPhase(), and FloatArray::getSize().

void ComplexFloatArray::getRealValues ( FloatArray  buf)

Get the real part of the elements of the array.

Parameters
[out]bufThe array where the real part will be stored.

Definition at line 194 of file ComplexFloatArray.cpp.

References ComplexFloat::re.

float ComplexFloatArray::im ( const int  i)
inline

The imaginary part of an element of the array.

Parameters
iThe index of the element
Returns
The imaginary part of the element

Definition at line 103 of file ComplexFloatArray.h.

References ComplexFloat::im.

Referenced by add(), equals(), FastFourierTransform::fft(), mag2(), and subtract().

float ComplexFloatArray::mag ( const int  i)

The magnitude of an element of the array.

Parameters
iThe index of the element
Returns
The magnitude of the element
Note
When built for ARM Cortex-M processor series, this method uses the optimized CMSIS library

Definition at line 5 of file ComplexFloatArray.cpp.

References mag2().

Referenced by getMagnitudeValues(), and getMaxMagnitudeValue().

float ComplexFloatArray::mag2 ( const int  i)

The magnitude squared of an element of the array.

Faster than mag().

Parameters
iThe index of the element
Returns
The magnitude squared of the element
Note
When built for ARM Cortex-M processor series, this method uses the optimized CMSIS library

Definition at line 27 of file ComplexFloatArray.cpp.

References ComplexFloat::im, im(), ComplexFloat::re, and re().

Referenced by getMagnitudeSquaredValues(), getMaxMagnitudeIndex(), getMaxMagnitudeValue(), and mag().

ComplexFloatArray::operator ComplexFloat * ( )
inline

Casting operator to ComplexFloat*.

Returns
A ComplexFloat* pointer to the data stored in the ComplexFloatArray

Definition at line 270 of file ComplexFloatArray.h.

ComplexFloatArray::operator float * ( )
inline

Casting operator to float*.

Returns
A float* pointer to the data stored in the ComplexFloatArray

Definition at line 278 of file ComplexFloatArray.h.

ComplexFloat& ComplexFloatArray::operator[] ( const int  index)
inline

Allows to index the array using array-style brackets.

Parameters
indexThe index of the element
Returns
the Value of the index element of the array Example usage:
int size=1000;
float content[size];
ComplexFloatArray complexFloatArray(content, size);
for(size_t n=0; n<size; n+=2){//now the ComplexFloatArray can be indexed as if it was an array
content[n]==complexFloatArray[n/2].re;
content[n+1]==complexFloatArray[n/2].im;
}

Definition at line 253 of file ComplexFloatArray.h.

ComplexFloat& ComplexFloatArray::operator[] ( const int  i) const
inline

Allows to index the array using array-style brackets.

const version of operator[]

Definition at line 262 of file ComplexFloatArray.h.

float ComplexFloatArray::re ( const int  i)
inline

The real part of an element of the array.

Parameters
iThe index of the element
Returns
The real part of the element

Definition at line 94 of file ComplexFloatArray.h.

References ComplexFloat::re.

Referenced by add(), equals(), FastFourierTransform::fft(), FastFourierTransform::ifft(), mag2(), and subtract().

void ComplexFloatArray::scale ( float  factor)

Array by scalar multiplication.

Parameters
factorThe value by which all the elements of the array are multiplied.
Note
When built for ARM Cortex-M processor series, this method uses the optimized CMSIS library

Definition at line 206 of file ComplexFloatArray.cpp.

References ComplexFloat::im, and ComplexFloat::re.

Referenced by ComplexFourierTransform::ifft().

void ComplexFloatArray::setAll ( ComplexFloat  value)

Set all the elements in the array.

Parameters
[in]valueAll the elements are set to this value.

Definition at line 290 of file ComplexFloatArray.cpp.

References ComplexFloat::im, and ComplexFloat::re.

Referenced by clear(), and setAll().

void ComplexFloatArray::setAll ( float  value)

Set all the elements in the array.

Parameters
[in]valueThe real and imaginary parts of all the elements in the array are set to this value.
Note
When built for ARM Cortex-M processor series, this method uses the optimized CMSIS library

Definition at line 277 of file ComplexFloatArray.cpp.

References ComplexFloat::im, ComplexFloat::re, and setAll().

void ComplexFloatArray::setAll ( float  valueRe,
float  valueIm 
)

Set all the elements in the array.

Parameters
[in]valueReThe real part of every element of the the array will be set to this value.
[in]valueImThe imaginary pary of rvery element of the the array will be set to this value.

Definition at line 297 of file ComplexFloatArray.cpp.

References ComplexFloat::im, ComplexFloat::re, and setAll().

void ComplexFloatArray::setMagnitude ( FloatArray  magnitude)

Set the magnitude of the elements of the array, leaving the phase unchanged.

Parameters
[in]magnitudeAn array containing the magnitudes.

Definition at line 330 of file ComplexFloatArray.cpp.

Referenced by setMagnitude().

void ComplexFloatArray::setMagnitude ( FloatArray  magnitude,
int  offset,
size_t  count 
)

Set the magnitude of a range of elements of the array, leaving the phase unchanged.

Parameters
[in]magnitudeAn array containing the magnitudes.
[in]offsetFirst element to set
[in]countNumber of elements to set

Definition at line 333 of file ComplexFloatArray.cpp.

References setMagnitude().

void ComplexFloatArray::setMagnitude ( FloatArray  magnitude,
ComplexFloatArray  destination 
)

Set the magnitude of the elements of an array, using the phase from the current array.

Parameters
[in]magnitudeAn array containing the magnitudes.
[out]destinationThe destination array.

Definition at line 336 of file ComplexFloatArray.cpp.

References setMagnitude().

void ComplexFloatArray::setMagnitude ( FloatArray  magnitude,
int  offset,
size_t  count,
ComplexFloatArray  destination 
)

Set the magnitude of a range of the elements of an array, using the phases from the current array.

The offset and count specified apply to both the source and destination arrays. Elements of the destination array outside this range will not be affected.

Parameters
[in]magnitudeAn array containing the magnitudes.
[in]offsetFirst element to set
[in]countNumber of elements to set
[out]destinationThe destination array.

Definition at line 339 of file ComplexFloatArray.cpp.

References ASSERT, getData(), FloatArray::getSize(), getSize(), and ComplexFloat::setPolar().

void ComplexFloatArray::setPhase ( FloatArray  phase)

Set the phase of the elements of the array, leaving the magnitude unchanged.

Parameters
[in]phaseAn array containing the phases.

Definition at line 313 of file ComplexFloatArray.cpp.

Referenced by setPhase().

void ComplexFloatArray::setPhase ( FloatArray  phase,
int  offset,
size_t  count 
)

Set the phase of a range of elements of the array, leaving the magnitude unchanged.

Parameters
[in]phaseAn array containing the phases.
[in]offsetFirst element to set
[in]countNumber of elements to set

Definition at line 316 of file ComplexFloatArray.cpp.

References ComplexFloat::setPhase().

void ComplexFloatArray::setPhase ( FloatArray  phase,
ComplexFloatArray  destination 
)

Set the phase of the elements of an array, using the magnitude from the current array.

Parameters
[in]phaseAn array containing the phases.
[out]destinationThe destination array.

Definition at line 321 of file ComplexFloatArray.cpp.

References setPhase().

void ComplexFloatArray::setPhase ( FloatArray  phase,
int  offset,
size_t  count,
ComplexFloatArray  destination 
)

Set the phase of a range of the elements of an array, using the magnitude from the current array.

The offset and count specified apply to both the source and destination arrays. Elements of the destination array outside this range will not be affected.

Parameters
[in]phaseAn array containing the phases.
[in]offsetFirst element to set
[in]countNumber of elements to set
[out]destinationThe destination array.

Definition at line 324 of file ComplexFloatArray.cpp.

References ASSERT, getData(), getSize(), and ComplexFloat::setPolar().

void ComplexFloatArray::setPolar ( FloatArray  magnitude,
FloatArray  phase 
)

Set all the elements in the array using polar coordinates.

Parameters
[in]magnitudeAn array containing the magnitudes.
[in]phaseAn array containing the phases.

Definition at line 304 of file ComplexFloatArray.cpp.

void ComplexFloatArray::setPolar ( FloatArray  magnitude,
FloatArray  phase,
int  offset,
size_t  count 
)

Set a range of elements in the array using polar coordinates.

Parameters
[in]magnitudeAn array containing the magnitudes.
[in]phaseAn array containing the phases.
[in]offsetFirst element to set
[in]countNumber of elements to set

Definition at line 307 of file ComplexFloatArray.cpp.

References ComplexFloat::setPolar().

ComplexFloatArray ComplexFloatArray::subArray ( int  offset,
size_t  length 
)

A subset of the array.

Returns an array that points to subset of the memory used by the original array.

Parameters
[in]offsetthe first element of the subset.
[in]lengththe number of elments in the new ComplexFloatArray.
Returns
the newly created ComplexFloatArray.
Remarks
no memory is allocated by this method. The memory is still shared with the original array. The memory should not be de-allocated elsewhere (e.g.: by calling ComplexFloatArray::destroy() on the original ComplexFloatArray) as long as the ComplexFloatArray returned by this method is still in use.
Calling ComplexFloatArray::destroy() on a ComplexFloatArray instance created with this method might cause an exception.

Definition at line 177 of file ComplexFloatArray.cpp.

References ASSERT, and ComplexFloatArray().

Referenced by FourierPitchDetector::computeFrequency().

void ComplexFloatArray::subtract ( ComplexFloatArray  operand2,
ComplexFloatArray  destination 
)

Element-wise difference between complex arrays.

Sets each element in destination to the complex difference between the corresponding element of the array and operand2

Parameters
[in]operand2second operand for the subtraction
[out]destinationthe destination array

Definition at line 117 of file ComplexFloatArray.cpp.

References ASSERT, ComplexFloat::im, im(), ComplexFloat::re, and re().

Referenced by subtract().

void ComplexFloatArray::subtract ( ComplexFloatArray  operand2)

In-place element-wise difference between complex arrays.

Sutracts each element of operand2 from the corresponding element in the array.

Parameters
operand2second operand for the sum

Definition at line 129 of file ComplexFloatArray.cpp.

References subtract().


The documentation for this class was generated from the following files: