setComplexVector method

void setComplexVector(
  1. List<double> real,
  2. List<double> imag,
  3. int num
)

Implementation

void setComplexVector( List<double> real, List<double> imag, int num ){
	if( num > _vectorNum ){
		_newVector( num - 1 );
	} else {
		_resizeVector( num - 1 );
	}

	for( int i = 0; i < num; i++ ){
		_vector[i].setReal( real[i] );
		_vector[i].setImag( imag[i] );
	}
}