Methods
- (MathComplexVector*)addComplexVector:(MathComplexVector*)op2;
Parameters
Name | Description |
op2 | Second operand |
- addComplexVectorToSelf:(MathComplexVector*)op2;
Parameters
Name | Description |
op2 | Second operand |
- (MathComplexVector*)addRealVector:(MathRealVector*)op2;
Parameters
Name | Description |
op2 | Second operand |
- (MathComplex)elementAtIndex:(int)index;
Parameters
- (MathComplexVector*)fft;
Result: New complex vector containing the forward Fourier transform of the vector
+ (MathComplexVector*)fftOfRealVector:(MathRealVector*)realVector;
Parameters
Name | Description |
realVector | |
- (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.
- (MathComplexVector*)ifft;
Result: New complex vector containing the inverse Fourier transform of the vector
- (float*)imagElements;
- (MathRealVector*)imagVector;
- initWithLength:(int)length realElements:(float*)realElements imagElements:(float*)imagElements;
realElements:imagElements:
- initWithLength:(int)length;
- initWithRealVector:(MathRealVector*)realVector imagVector:(MathRealVector*)imagVector;
- (int)length;
- (MathRealVector*)magnitude;
Result: New real vector containing the magnitude of self.
- (MathComplexVector*)mulComplexVector:(MathComplexVector*)op2;
Parameters
Name | Description |
op2 | Second operand |
- (MathComplexVector*)mulRealVector:(MathRealVector*)op2;
Parameters
Name | Description |
op2 | Second operand |
- (MathRealVector*)phase;
Result: New real vector containing the phase of self, in the range [0,2pi].
- 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.
- (float*)realElements;
- (MathRealVector*)realVector;
- setLength:(int)l;
Parameters
- (MathSplitComplex)splitComplex;
- (MathComplexVector*)subComplexVector:(MathComplexVector*)op2;
Parameters
Name | Description |
op2 | Second operand |
- (MathComplexVector*)subRealVector:(MathRealVector*)op2;
Parameters
Name | Description |
op2 | Second operand |
+ vectorWithLength:(int)length;
+ vectorWithVector:(MathComplexVector*)vector;
(Last Updated 3/28/2002)