* reusing a passed double[] array.
*/
final public static ArrayImg< ComplexDoubleType, DoubleArray > complexDoubles( final double[] array, final long... dim )
{
final DoubleArray access = new DoubleArray( array );
final ArrayImg< ComplexDoubleType, DoubleArray > img = new ArrayImg< ComplexDoubleType, DoubleArray >( access, dim, new Fraction( 2, 1 ) );
final ComplexDoubleType t = new ComplexDoubleType( img );
img.setLinkedType( t );
return img;
}