Interface BartNDArray

    • Method Detail

      • copyFrom

        default BartNDArray copyFrom​(float[] array)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • copyFrom

        default BartNDArray copyFrom​(double[] array)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • copyFrom

        default BartNDArray copyFrom​(byte[] array)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • copyFrom

        default BartNDArray copyFrom​(short[] array)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • copyFrom

        default BartNDArray copyFrom​(int[] array)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • copyFrom

        default BartNDArray copyFrom​(long[] array)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • copyFrom

        default BartNDArray copyFrom​(Object[] array)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • copyFrom

        default BartNDArray copyFrom​(io.github.hakkelt.ndarrays.NDArray<?> array)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • copyFrom

        default BartNDArray copyFrom​(float[] real,
                                     float[] imag)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
      • copyFrom

        default BartNDArray copyFrom​(double[] real,
                                     double[] imag)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
      • copyFrom

        default BartNDArray copyFrom​(byte[] real,
                                     byte[] imag)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
      • copyFrom

        default BartNDArray copyFrom​(short[] real,
                                     short[] imag)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
      • copyFrom

        default BartNDArray copyFrom​(int[] real,
                                     int[] imag)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
      • copyFrom

        default BartNDArray copyFrom​(long[] real,
                                     long[] imag)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
      • copyFrom

        default BartNDArray copyFrom​(Object[] real,
                                     Object[] imag)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
      • copyFrom

        default BartNDArray copyFrom​(io.github.hakkelt.ndarrays.NDArray<? extends Number> real,
                                     io.github.hakkelt.ndarrays.NDArray<? extends Number> imag)
        Specified by:
        copyFrom in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
      • apply

        BartNDArray apply​(UnaryOperator<org.apache.commons.math3.complex.Complex> func)
        Specified by:
        apply in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        apply in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • applyWithLinearIndices

        BartNDArray applyWithLinearIndices​(BiFunction<org.apache.commons.math3.complex.Complex,​Integer,​org.apache.commons.math3.complex.Complex> func)
        Specified by:
        applyWithLinearIndices in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        applyWithLinearIndices in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • applyWithCartesianIndices

        BartNDArray applyWithCartesianIndices​(BiFunction<org.apache.commons.math3.complex.Complex,​int[],​org.apache.commons.math3.complex.Complex> func)
        Specified by:
        applyWithCartesianIndices in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        applyWithCartesianIndices in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • applyOnComplexSlices

        BartNDArray applyOnComplexSlices​(BiFunction<io.github.hakkelt.ndarrays.ComplexNDArray<Float>,​int[],​io.github.hakkelt.ndarrays.NDArray<?>> func,
                                         int... iterationDims)
        Specified by:
        applyOnComplexSlices in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
      • fillUsingLinearIndices

        BartNDArray fillUsingLinearIndices​(IntFunction<org.apache.commons.math3.complex.Complex> func)
        Specified by:
        fillUsingLinearIndices in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        fillUsingLinearIndices in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • fillUsingCartesianIndices

        BartNDArray fillUsingCartesianIndices​(Function<int[],​org.apache.commons.math3.complex.Complex> func)
        Specified by:
        fillUsingCartesianIndices in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        fillUsingCartesianIndices in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • map

        default BartNDArray map​(UnaryOperator<org.apache.commons.math3.complex.Complex> func)
        Specified by:
        map in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        map in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • mapWithLinearIndices

        default BartNDArray mapWithLinearIndices​(BiFunction<org.apache.commons.math3.complex.Complex,​Integer,​org.apache.commons.math3.complex.Complex> func)
        Specified by:
        mapWithLinearIndices in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        mapWithLinearIndices in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • mapWithCartesianIndices

        default BartNDArray mapWithCartesianIndices​(BiFunction<org.apache.commons.math3.complex.Complex,​int[],​org.apache.commons.math3.complex.Complex> func)
        Specified by:
        mapWithCartesianIndices in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        mapWithCartesianIndices in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • mapOnComplexSlices

        BartNDArray mapOnComplexSlices​(BiFunction<io.github.hakkelt.ndarrays.ComplexNDArray<Float>,​int[],​io.github.hakkelt.ndarrays.NDArray<?>> func,
                                       int... iterationDims)
        Specified by:
        mapOnComplexSlices in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
      • add

        default BartNDArray add​(byte addend)
        Specified by:
        add in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        add in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • add

        default BartNDArray add​(short addend)
        Specified by:
        add in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        add in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • add

        default BartNDArray add​(int addend)
        Specified by:
        add in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        add in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • add

        default BartNDArray add​(long addend)
        Specified by:
        add in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        add in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • add

        default BartNDArray add​(float addend)
        Specified by:
        add in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        add in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • add

        default BartNDArray add​(double addend)
        Specified by:
        add in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        add in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • add

        default BartNDArray add​(io.github.hakkelt.ndarrays.NDArray<?> addend)
        Specified by:
        add in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        add in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • add

        default BartNDArray add​(Object... addends)
        Specified by:
        add in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        add in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • addInplace

        default BartNDArray addInplace​(byte addend)
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • addInplace

        default BartNDArray addInplace​(short addend)
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • addInplace

        default BartNDArray addInplace​(int addend)
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • addInplace

        default BartNDArray addInplace​(long addend)
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • addInplace

        default BartNDArray addInplace​(float addend)
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • addInplace

        default BartNDArray addInplace​(double addend)
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • addInplace

        default BartNDArray addInplace​(io.github.hakkelt.ndarrays.NDArray<?> addend)
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • addInplace

        default BartNDArray addInplace​(Object... addends)
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        addInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtract

        default BartNDArray subtract​(byte substrahend)
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtract

        default BartNDArray subtract​(short substrahend)
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtract

        default BartNDArray subtract​(int substrahend)
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtract

        default BartNDArray subtract​(long substrahend)
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtract

        default BartNDArray subtract​(float substrahend)
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtract

        default BartNDArray subtract​(double substrahend)
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtract

        default BartNDArray subtract​(io.github.hakkelt.ndarrays.NDArray<?> substrahend)
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtract

        default BartNDArray subtract​(Object... substrahends)
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtract in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtractInplace

        default BartNDArray subtractInplace​(byte substrahend)
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtractInplace

        default BartNDArray subtractInplace​(short substrahend)
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtractInplace

        default BartNDArray subtractInplace​(int substrahend)
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtractInplace

        default BartNDArray subtractInplace​(long substrahend)
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtractInplace

        default BartNDArray subtractInplace​(float substrahend)
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtractInplace

        default BartNDArray subtractInplace​(double substrahend)
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtractInplace

        default BartNDArray subtractInplace​(io.github.hakkelt.ndarrays.NDArray<?> substrahend)
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • subtractInplace

        default BartNDArray subtractInplace​(Object... substrahends)
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        subtractInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiply

        default BartNDArray multiply​(byte multiplicand)
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiply

        default BartNDArray multiply​(short multiplicand)
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiply

        default BartNDArray multiply​(int multiplicand)
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiply

        default BartNDArray multiply​(long multiplicand)
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiply

        default BartNDArray multiply​(float multiplicand)
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiply

        default BartNDArray multiply​(double multiplicand)
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiply

        default BartNDArray multiply​(io.github.hakkelt.ndarrays.NDArray<?> multiplicand)
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiply

        default BartNDArray multiply​(Object... multiplicands)
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiply in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiplyInplace

        default BartNDArray multiplyInplace​(byte multiplicand)
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiplyInplace

        default BartNDArray multiplyInplace​(short multiplicand)
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiplyInplace

        default BartNDArray multiplyInplace​(int multiplicand)
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiplyInplace

        default BartNDArray multiplyInplace​(long multiplicand)
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiplyInplace

        default BartNDArray multiplyInplace​(float multiplicand)
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiplyInplace

        default BartNDArray multiplyInplace​(double multiplicand)
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiplyInplace

        default BartNDArray multiplyInplace​(io.github.hakkelt.ndarrays.NDArray<?> multiplicand)
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • multiplyInplace

        default BartNDArray multiplyInplace​(Object... multiplicands)
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        multiplyInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divide

        default BartNDArray divide​(byte divisor)
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divide

        default BartNDArray divide​(short divisor)
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divide

        default BartNDArray divide​(int divisor)
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divide

        default BartNDArray divide​(long divisor)
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divide

        default BartNDArray divide​(float divisor)
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divide

        default BartNDArray divide​(double divisor)
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divide

        default BartNDArray divide​(io.github.hakkelt.ndarrays.NDArray<?> divisor)
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divide

        default BartNDArray divide​(Object... divisors)
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divide in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divideInplace

        default BartNDArray divideInplace​(byte divisor)
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divideInplace

        default BartNDArray divideInplace​(short divisor)
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divideInplace

        default BartNDArray divideInplace​(int divisor)
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divideInplace

        default BartNDArray divideInplace​(long divisor)
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divideInplace

        default BartNDArray divideInplace​(float divisor)
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divideInplace

        default BartNDArray divideInplace​(double divisor)
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divideInplace

        default BartNDArray divideInplace​(io.github.hakkelt.ndarrays.NDArray<?> divisor)
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • divideInplace

        default BartNDArray divideInplace​(Object... divisors)
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        divideInplace in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • sum

        default BartNDArray sum​(int... selectedDims)
        Specified by:
        sum in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        sum in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • fill

        default BartNDArray fill​(org.apache.commons.math3.complex.Complex value)
        Specified by:
        fill in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        fill in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • fill

        default BartNDArray fill​(Float value)
        Specified by:
        fill in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
      • fill

        default BartNDArray fill​(double value)
        Specified by:
        fill in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        fill in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • concatenate

        default BartNDArray concatenate​(int axis,
                                        io.github.hakkelt.ndarrays.NDArray<?>... arrays)
        Specified by:
        concatenate in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        concatenate in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • similar

        BartNDArray similar()
        Specified by:
        similar in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        similar in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • copy

        BartNDArray copy()
        Specified by:
        copy in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        copy in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • slice

        default BartNDArray slice​(Object... slicingExpressions)
        Specified by:
        slice in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        slice in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • mask

        default BartNDArray mask​(io.github.hakkelt.ndarrays.NDArray<?> mask)
        Specified by:
        mask in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        mask in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • mask

        default BartNDArray mask​(Predicate<org.apache.commons.math3.complex.Complex> func)
        Specified by:
        mask in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        mask in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • maskWithLinearIndices

        default BartNDArray maskWithLinearIndices​(BiPredicate<org.apache.commons.math3.complex.Complex,​Integer> func)
        Specified by:
        maskWithLinearIndices in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        maskWithLinearIndices in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • maskWithCartesianIndices

        default BartNDArray maskWithCartesianIndices​(BiPredicate<org.apache.commons.math3.complex.Complex,​int[]> func)
        Specified by:
        maskWithCartesianIndices in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        maskWithCartesianIndices in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • inverseMask

        default BartNDArray inverseMask​(io.github.hakkelt.ndarrays.NDArray<?> mask)
        Specified by:
        inverseMask in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        inverseMask in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • permuteDims

        default BartNDArray permuteDims​(int... permutation)
        Specified by:
        permuteDims in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        permuteDims in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • reshape

        default BartNDArray reshape​(int... newShape)
        Specified by:
        reshape in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        reshape in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • selectDims

        default BartNDArray selectDims​(int... selectedDims)
        Specified by:
        selectDims in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        selectDims in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • selectAndReorderBartDims

        default BartNDArray selectAndReorderBartDims​(BartDimsEnum... selectedDims)
        Returns a view that references this BartNDArray as parent, skips all singleton dimensions not included in the parameter list, and then changes the order of dimensions to match the order of dimensions in the parameter list.

        View: An NDArray that references the specified region its parent array. All modifications in the parent array are reflected in the view, and vice versa.

        Singleton dimension: dimension of size 1.

        • Example:
        
        BartNDArray array = new BartFloatNDArray(128, 1, 64).fill(new Complex(1,-1));
        array.setBartDims(BartDimsEnum._01_PHS1, BartDimsEnum._00_READ, BartDimsEnum._10_TIME);
        BartNDArray array2 = array.selectAndReorderBartDims(BartDimsEnum._10_TIME, BartDimsEnum._01_PHS1);
        assertEquals(2, array2.ndim());
        assertEquals(64, array2.shape(0));
        assertEquals(128, array2.shape(1));
         
        Parameters:
        selectedDims - dimensions kept in the returned view
        Returns:
        a view that references this BartNDArray as parent, and skips all singleton dimensions not included in the parameter list
      • dropDims

        default BartNDArray dropDims​(int... droppedDims)
        Specified by:
        dropDims in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        dropDims in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • squeeze

        default BartNDArray squeeze()
        Specified by:
        squeeze in interface io.github.hakkelt.ndarrays.ComplexNDArray<Float>
        Specified by:
        squeeze in interface io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
      • areBartDimsSpecified

        boolean areBartDimsSpecified()
        Checks if meaning of dimensions are specified in BART or not.
        Returns:
        true if the meaning of dimensions in BART are specified
      • getBartDims

        BartDimsEnum[] getBartDims()
        Returns an array of BartDimsEnum that tells the meaning of each dimensions in BART.
        Returns:
        an array of BartDimsEnum that tells the meaning of each dimensions in BART
      • setBartDims

        void setBartDims​(BartDimsEnum... bartDims)
        Sets the meaning of dimensions.
        Parameters:
        bartDims - meaning of dimensions in BART.
      • prepareToSave

        static BartNDArray prepareToSave​(BartNDArray array)
        Permutes and reshapes the array according to the meaning of dimensions in BART and writes to disk.
        Parameters:
        array - BartNDArray to be saved to disk
        Returns:
        Prepared BartNDArray ready to save