PyMultiarray negComplexDouble(final PyMultiarray a) {
        final double[] aData = (double[]) a.data;
        for (int i = 0; i < aData.length; i++) {
            aData[i] = -aData[i];
        }
        return a;
    }