setComplexMatrix method

void setComplexMatrix(
  1. int index,
  2. MathMatrix real,
  3. MathMatrix imag, [
  4. bool moveFlag = false,
])

Implementation

void setComplexMatrix( int index, MathMatrix real, MathMatrix imag, [bool moveFlag = false] ){
	if( real.len() == imag.len() ){
		MathMatrix src = MathMatrix( real.row(), real.col() );
		for( int i = 0; i < real.len(); i++ ){
			src.mat(i).setReal( real.mat(i).toFloat() );
			src.mat(i).setImag( imag.mat(i).toFloat() );
		}
		if( moveFlag ){
			move( index );
		}
		_mat[index].ass( src );
	}
}