Methods



addComplexVector:

- (MathComplexVector*)addComplexVector:(MathComplexVector*)op2; 

Parameters

NameDescription
op2Second operand

addComplexVectorToSelf:

-  addComplexVectorToSelf:(MathComplexVector*)op2; 

Parameters

NameDescription
op2Second operand

addRealVector:

- (MathComplexVector*)addRealVector:(MathRealVector*)op2; 

Parameters

NameDescription
op2Second operand

elementAtIndex:

- (MathComplex)elementAtIndex:(int)index; 

Parameters

NameDescription
index

fft

- (MathComplexVector*)fft; 

Result: New complex vector containing the forward Fourier transform of the vector

fftOfRealVector:

+ (MathComplexVector*)fftOfRealVector:(MathRealVector*)realVector; 

Parameters

NameDescription
realVector

fftShift

- (MathComplexVector*)fftShift; 

Exchanges the elements between halves of the vector, so that in a vector with 2n elements, e[0] <=> e[n], e[1] <=> e[n+1] etc.


ifft

- (MathComplexVector*)ifft; 

Result: New complex vector containing the inverse Fourier transform of the vector

imagElements

- (float*)imagElements; 


imagVector;

- (MathRealVector*)imagVector; 


initWithLength:

-  initWithLength:(int)length realElements:(float*)realElements imagElements:(float*)imagElements; 

realElements:imagElements:


initWithLength:

-  initWithLength:(int)length; 


initWithRealVector:imagVector:

-  initWithRealVector:(MathRealVector*)realVector imagVector:(MathRealVector*)imagVector; 


length

- (int)length; 


magnitude

- (MathRealVector*)magnitude; 

Result: New real vector containing the magnitude of self.

mulComplexVector:

- (MathComplexVector*)mulComplexVector:(MathComplexVector*)op2; 

Parameters

NameDescription
op2Second operand

mulRealVector:

- (MathComplexVector*)mulRealVector:(MathRealVector*)op2; 

Parameters

NameDescription
op2Second operand

phase

- (MathRealVector*)phase; 

Result: New real vector containing the phase of self, in the range [0,2pi].

printElements

-  printElements; 

Prints all elements to stdout in a column, with each element appearing as text with the format Re + iIm, where Re is the real component, and Im the imaginary component of each element.


realElements

- (float*)realElements; 


realVector;

- (MathRealVector*)realVector; 


setLength:

-  setLength:(int)l; 

Parameters

NameDescription
l

splitComplex

- (MathSplitComplex)splitComplex; 


subComplexVector:

- (MathComplexVector*)subComplexVector:(MathComplexVector*)op2; 

Parameters

NameDescription
op2Second operand

subRealVector:

- (MathComplexVector*)subRealVector:(MathRealVector*)op2; 

Parameters

NameDescription
op2Second operand

vectorWithLength:

+  vectorWithLength:(int)length; 


vectorWithVector:

+  vectorWithVector:(MathComplexVector*)vector; 


(Last Updated 3/28/2002)