this(d.size());
if( d instanceof MLComplexData ) {
MLComplexData c = (MLComplexData)d;
for (int i = 0; i < d.size(); i++) {
this.data[i] = new ComplexNumber(c.getComplexData(i));
}
} else {
for (int i = 0; i < d.size(); i++) {
this.data[i] = new ComplexNumber(d.getData(i), 0);
}
}
}