Package io.github.hakkelt.bartwrapper
Interface BartNDArray
-
- All Superinterfaces:
io.github.hakkelt.ndarrays.ComplexNDArray<Float>,Iterable<org.apache.commons.math3.complex.Complex>,io.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
- All Known Implementing Classes:
BartComplexFloatNDArray,BartNDArrayMaskView,BartNDArrayPermuteDimsView,BartNDArrayReshapeView,BartNDArraySliceView
public interface BartNDArray extends io.github.hakkelt.ndarrays.ComplexNDArray<Float>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BartNDArrayadd(byte addend)default BartNDArrayadd(double addend)default BartNDArrayadd(float addend)default BartNDArrayadd(int addend)default BartNDArrayadd(long addend)default BartNDArrayadd(short addend)default BartNDArrayadd(io.github.hakkelt.ndarrays.NDArray<?> addend)default BartNDArrayadd(Object... addends)default BartNDArrayaddInplace(byte addend)default BartNDArrayaddInplace(double addend)default BartNDArrayaddInplace(float addend)default BartNDArrayaddInplace(int addend)default BartNDArrayaddInplace(long addend)default BartNDArrayaddInplace(short addend)default BartNDArrayaddInplace(io.github.hakkelt.ndarrays.NDArray<?> addend)default BartNDArrayaddInplace(Object... addends)BartNDArrayapply(UnaryOperator<org.apache.commons.math3.complex.Complex> func)BartNDArrayapplyOnComplexSlices(BiFunction<io.github.hakkelt.ndarrays.ComplexNDArray<Float>,int[],io.github.hakkelt.ndarrays.NDArray<?>> func, int... iterationDims)BartNDArrayapplyWithCartesianIndices(BiFunction<org.apache.commons.math3.complex.Complex,int[],org.apache.commons.math3.complex.Complex> func)BartNDArrayapplyWithLinearIndices(BiFunction<org.apache.commons.math3.complex.Complex,Integer,org.apache.commons.math3.complex.Complex> func)booleanareBartDimsSpecified()Checks if meaning of dimensions are specified in BART or not.default BartNDArrayconcatenate(int axis, io.github.hakkelt.ndarrays.NDArray<?>... arrays)BartNDArraycopy()default BartNDArraycopyFrom(byte[] array)default BartNDArraycopyFrom(byte[] real, byte[] imag)default BartNDArraycopyFrom(double[] array)default BartNDArraycopyFrom(double[] real, double[] imag)default BartNDArraycopyFrom(float[] array)default BartNDArraycopyFrom(float[] real, float[] imag)default BartNDArraycopyFrom(int[] array)default BartNDArraycopyFrom(int[] real, int[] imag)default BartNDArraycopyFrom(long[] array)default BartNDArraycopyFrom(long[] real, long[] imag)default BartNDArraycopyFrom(short[] array)default BartNDArraycopyFrom(short[] real, short[] imag)default BartNDArraycopyFrom(io.github.hakkelt.ndarrays.NDArray<?> array)default BartNDArraycopyFrom(io.github.hakkelt.ndarrays.NDArray<? extends Number> real, io.github.hakkelt.ndarrays.NDArray<? extends Number> imag)default BartNDArraycopyFrom(Object[] array)default BartNDArraycopyFrom(Object[] real, Object[] imag)default BartNDArraydivide(byte divisor)default BartNDArraydivide(double divisor)default BartNDArraydivide(float divisor)default BartNDArraydivide(int divisor)default BartNDArraydivide(long divisor)default BartNDArraydivide(short divisor)default BartNDArraydivide(io.github.hakkelt.ndarrays.NDArray<?> divisor)default BartNDArraydivide(Object... divisors)default BartNDArraydivideInplace(byte divisor)default BartNDArraydivideInplace(double divisor)default BartNDArraydivideInplace(float divisor)default BartNDArraydivideInplace(int divisor)default BartNDArraydivideInplace(long divisor)default BartNDArraydivideInplace(short divisor)default BartNDArraydivideInplace(io.github.hakkelt.ndarrays.NDArray<?> divisor)default BartNDArraydivideInplace(Object... divisors)default BartNDArraydropDims(int... droppedDims)default BartNDArrayfill(double value)default BartNDArrayfill(Float value)default BartNDArrayfill(org.apache.commons.math3.complex.Complex value)BartNDArrayfillUsingCartesianIndices(Function<int[],org.apache.commons.math3.complex.Complex> func)BartNDArrayfillUsingLinearIndices(IntFunction<org.apache.commons.math3.complex.Complex> func)BartDimsEnum[]getBartDims()Returns an array of BartDimsEnum that tells the meaning of each dimensions in BART.default BartNDArrayinverseMask(io.github.hakkelt.ndarrays.NDArray<?> mask)static BartComplexFloatNDArrayload(File file)default BartNDArraymap(UnaryOperator<org.apache.commons.math3.complex.Complex> func)BartNDArraymapOnComplexSlices(BiFunction<io.github.hakkelt.ndarrays.ComplexNDArray<Float>,int[],io.github.hakkelt.ndarrays.NDArray<?>> func, int... iterationDims)default BartNDArraymapWithCartesianIndices(BiFunction<org.apache.commons.math3.complex.Complex,int[],org.apache.commons.math3.complex.Complex> func)default BartNDArraymapWithLinearIndices(BiFunction<org.apache.commons.math3.complex.Complex,Integer,org.apache.commons.math3.complex.Complex> func)default BartNDArraymask(io.github.hakkelt.ndarrays.NDArray<?> mask)default BartNDArraymask(Predicate<org.apache.commons.math3.complex.Complex> func)default BartNDArraymaskWithCartesianIndices(BiPredicate<org.apache.commons.math3.complex.Complex,int[]> func)default BartNDArraymaskWithLinearIndices(BiPredicate<org.apache.commons.math3.complex.Complex,Integer> func)default BartNDArraymultiply(byte multiplicand)default BartNDArraymultiply(double multiplicand)default BartNDArraymultiply(float multiplicand)default BartNDArraymultiply(int multiplicand)default BartNDArraymultiply(long multiplicand)default BartNDArraymultiply(short multiplicand)default BartNDArraymultiply(io.github.hakkelt.ndarrays.NDArray<?> multiplicand)default BartNDArraymultiply(Object... multiplicands)default BartNDArraymultiplyInplace(byte multiplicand)default BartNDArraymultiplyInplace(double multiplicand)default BartNDArraymultiplyInplace(float multiplicand)default BartNDArraymultiplyInplace(int multiplicand)default BartNDArraymultiplyInplace(long multiplicand)default BartNDArraymultiplyInplace(short multiplicand)default BartNDArraymultiplyInplace(io.github.hakkelt.ndarrays.NDArray<?> multiplicand)default BartNDArraymultiplyInplace(Object... multiplicands)default BartNDArraypermuteDims(int... permutation)static BartNDArrayprepareToSave(BartNDArray array)Permutes and reshapes the array according to the meaning of dimensions in BART and writes to disk.default BartNDArrayreshape(int... newShape)static voidsave(io.github.hakkelt.ndarrays.NDArray<?> array, File file)static FilesaveToTemp(io.github.hakkelt.ndarrays.NDArray<?> array)default BartNDArrayselectAndReorderBartDims(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.default BartNDArrayselectDims(int... selectedDims)voidsetBartDims(BartDimsEnum... bartDims)Sets the meaning of dimensions.BartNDArraysimilar()default BartNDArrayslice(Object... slicingExpressions)default BartNDArraysqueeze()default BartNDArraysubtract(byte substrahend)default BartNDArraysubtract(double substrahend)default BartNDArraysubtract(float substrahend)default BartNDArraysubtract(int substrahend)default BartNDArraysubtract(long substrahend)default BartNDArraysubtract(short substrahend)default BartNDArraysubtract(io.github.hakkelt.ndarrays.NDArray<?> substrahend)default BartNDArraysubtract(Object... substrahends)default BartNDArraysubtractInplace(byte substrahend)default BartNDArraysubtractInplace(double substrahend)default BartNDArraysubtractInplace(float substrahend)default BartNDArraysubtractInplace(int substrahend)default BartNDArraysubtractInplace(long substrahend)default BartNDArraysubtractInplace(short substrahend)default BartNDArraysubtractInplace(io.github.hakkelt.ndarrays.NDArray<?> substrahend)default BartNDArraysubtractInplace(Object... substrahends)default BartNDArraysum(int... selectedDims)-
Methods inherited from interface io.github.hakkelt.ndarrays.ComplexNDArray
abs, accumulate, argument, contentToString, dtype2, getImag, getImag, getReal, getReal, imaginary, prod, real, reduceComplexSlices, setImag, setImag, setReal, setReal
-
Methods inherited from interface io.github.hakkelt.ndarrays.NDArray
accumulate, applyOnSlices, contains, contentToString, dataTypeAsString, dtype, equals, forEach, forEachWithCartesianIndices, forEachWithLinearIndices, get, get, getNamePrefix, hashCode, iterator, length, mapOnSlices, ndim, norm, norm, norm, parallelStream, prod, reduceSlices, set, set, set, set, shape, shape, spliterator, stream, streamCartesianIndices, streamLinearIndices, sum, toArray, toArray, toArray, toString, writeToFile
-
-
-
-
Method Detail
-
copyFrom
default BartNDArray copyFrom(float[] array)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
copyFrom
default BartNDArray copyFrom(double[] array)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
copyFrom
default BartNDArray copyFrom(byte[] array)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
copyFrom
default BartNDArray copyFrom(short[] array)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
copyFrom
default BartNDArray copyFrom(int[] array)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
copyFrom
default BartNDArray copyFrom(long[] array)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
copyFrom
default BartNDArray copyFrom(Object[] array)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
copyFrom
default BartNDArray copyFrom(io.github.hakkelt.ndarrays.NDArray<?> array)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
copyFrom
default BartNDArray copyFrom(float[] real, float[] imag)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>
-
copyFrom
default BartNDArray copyFrom(double[] real, double[] imag)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>
-
copyFrom
default BartNDArray copyFrom(byte[] real, byte[] imag)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>
-
copyFrom
default BartNDArray copyFrom(short[] real, short[] imag)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>
-
copyFrom
default BartNDArray copyFrom(int[] real, int[] imag)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>
-
copyFrom
default BartNDArray copyFrom(long[] real, long[] imag)
- Specified by:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>
-
copyFrom
default BartNDArray copyFrom(Object[] real, Object[] imag)
- Specified by:
copyFromin interfaceio.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:
copyFromin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>
-
apply
BartNDArray apply(UnaryOperator<org.apache.commons.math3.complex.Complex> func)
- Specified by:
applyin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
applyin interfaceio.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:
applyWithLinearIndicesin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
applyWithLinearIndicesin interfaceio.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:
applyWithCartesianIndicesin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
applyWithCartesianIndicesin interfaceio.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:
applyOnComplexSlicesin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>
-
fillUsingLinearIndices
BartNDArray fillUsingLinearIndices(IntFunction<org.apache.commons.math3.complex.Complex> func)
- Specified by:
fillUsingLinearIndicesin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
fillUsingLinearIndicesin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
fillUsingCartesianIndices
BartNDArray fillUsingCartesianIndices(Function<int[],org.apache.commons.math3.complex.Complex> func)
- Specified by:
fillUsingCartesianIndicesin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
fillUsingCartesianIndicesin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
map
default BartNDArray map(UnaryOperator<org.apache.commons.math3.complex.Complex> func)
- Specified by:
mapin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
mapin interfaceio.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:
mapWithLinearIndicesin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
mapWithLinearIndicesin interfaceio.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:
mapWithCartesianIndicesin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
mapWithCartesianIndicesin interfaceio.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:
mapOnComplexSlicesin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>
-
add
default BartNDArray add(byte addend)
- Specified by:
addin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
add
default BartNDArray add(short addend)
- Specified by:
addin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
add
default BartNDArray add(int addend)
- Specified by:
addin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
add
default BartNDArray add(long addend)
- Specified by:
addin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
add
default BartNDArray add(float addend)
- Specified by:
addin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
add
default BartNDArray add(double addend)
- Specified by:
addin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
add
default BartNDArray add(io.github.hakkelt.ndarrays.NDArray<?> addend)
- Specified by:
addin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
add
default BartNDArray add(Object... addends)
- Specified by:
addin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
addInplace
default BartNDArray addInplace(byte addend)
- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
addInplace
default BartNDArray addInplace(short addend)
- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
addInplace
default BartNDArray addInplace(int addend)
- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
addInplace
default BartNDArray addInplace(long addend)
- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
addInplace
default BartNDArray addInplace(float addend)
- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
addInplace
default BartNDArray addInplace(double addend)
- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
addInplace
default BartNDArray addInplace(io.github.hakkelt.ndarrays.NDArray<?> addend)
- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
addInplace
default BartNDArray addInplace(Object... addends)
- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
addInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtract
default BartNDArray subtract(byte substrahend)
- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtract
default BartNDArray subtract(short substrahend)
- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtract
default BartNDArray subtract(int substrahend)
- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtract
default BartNDArray subtract(long substrahend)
- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtract
default BartNDArray subtract(float substrahend)
- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtract
default BartNDArray subtract(double substrahend)
- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtract
default BartNDArray subtract(io.github.hakkelt.ndarrays.NDArray<?> substrahend)
- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtract
default BartNDArray subtract(Object... substrahends)
- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtractInplace
default BartNDArray subtractInplace(byte substrahend)
- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtractInplace
default BartNDArray subtractInplace(short substrahend)
- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtractInplace
default BartNDArray subtractInplace(int substrahend)
- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtractInplace
default BartNDArray subtractInplace(long substrahend)
- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtractInplace
default BartNDArray subtractInplace(float substrahend)
- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtractInplace
default BartNDArray subtractInplace(double substrahend)
- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtractInplace
default BartNDArray subtractInplace(io.github.hakkelt.ndarrays.NDArray<?> substrahend)
- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
subtractInplace
default BartNDArray subtractInplace(Object... substrahends)
- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
subtractInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiply
default BartNDArray multiply(byte multiplicand)
- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiply
default BartNDArray multiply(short multiplicand)
- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiply
default BartNDArray multiply(int multiplicand)
- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiply
default BartNDArray multiply(long multiplicand)
- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiply
default BartNDArray multiply(float multiplicand)
- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiply
default BartNDArray multiply(double multiplicand)
- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiply
default BartNDArray multiply(io.github.hakkelt.ndarrays.NDArray<?> multiplicand)
- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiply
default BartNDArray multiply(Object... multiplicands)
- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiplyInplace
default BartNDArray multiplyInplace(byte multiplicand)
- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiplyInplace
default BartNDArray multiplyInplace(short multiplicand)
- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiplyInplace
default BartNDArray multiplyInplace(int multiplicand)
- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiplyInplace
default BartNDArray multiplyInplace(long multiplicand)
- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiplyInplace
default BartNDArray multiplyInplace(float multiplicand)
- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiplyInplace
default BartNDArray multiplyInplace(double multiplicand)
- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiplyInplace
default BartNDArray multiplyInplace(io.github.hakkelt.ndarrays.NDArray<?> multiplicand)
- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
multiplyInplace
default BartNDArray multiplyInplace(Object... multiplicands)
- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
multiplyInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divide
default BartNDArray divide(byte divisor)
- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divide
default BartNDArray divide(short divisor)
- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divide
default BartNDArray divide(int divisor)
- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divide
default BartNDArray divide(long divisor)
- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divide
default BartNDArray divide(float divisor)
- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divide
default BartNDArray divide(double divisor)
- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divide
default BartNDArray divide(io.github.hakkelt.ndarrays.NDArray<?> divisor)
- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divide
default BartNDArray divide(Object... divisors)
- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
dividein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divideInplace
default BartNDArray divideInplace(byte divisor)
- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divideInplace
default BartNDArray divideInplace(short divisor)
- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divideInplace
default BartNDArray divideInplace(int divisor)
- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divideInplace
default BartNDArray divideInplace(long divisor)
- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divideInplace
default BartNDArray divideInplace(float divisor)
- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divideInplace
default BartNDArray divideInplace(double divisor)
- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divideInplace
default BartNDArray divideInplace(io.github.hakkelt.ndarrays.NDArray<?> divisor)
- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
divideInplace
default BartNDArray divideInplace(Object... divisors)
- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
divideInplacein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
sum
default BartNDArray sum(int... selectedDims)
- Specified by:
sumin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
sumin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
fill
default BartNDArray fill(org.apache.commons.math3.complex.Complex value)
- Specified by:
fillin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
fillin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
fill
default BartNDArray fill(Float value)
- Specified by:
fillin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>
-
fill
default BartNDArray fill(double value)
- Specified by:
fillin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
fillin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
concatenate
default BartNDArray concatenate(int axis, io.github.hakkelt.ndarrays.NDArray<?>... arrays)
- Specified by:
concatenatein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
concatenatein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
similar
BartNDArray similar()
- Specified by:
similarin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
similarin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
copy
BartNDArray copy()
- Specified by:
copyin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
copyin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
slice
default BartNDArray slice(Object... slicingExpressions)
- Specified by:
slicein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
slicein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
mask
default BartNDArray mask(io.github.hakkelt.ndarrays.NDArray<?> mask)
- Specified by:
maskin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
maskin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
mask
default BartNDArray mask(Predicate<org.apache.commons.math3.complex.Complex> func)
- Specified by:
maskin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
maskin interfaceio.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:
maskWithLinearIndicesin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
maskWithLinearIndicesin interfaceio.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:
maskWithCartesianIndicesin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
maskWithCartesianIndicesin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
inverseMask
default BartNDArray inverseMask(io.github.hakkelt.ndarrays.NDArray<?> mask)
- Specified by:
inverseMaskin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
inverseMaskin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
permuteDims
default BartNDArray permuteDims(int... permutation)
- Specified by:
permuteDimsin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
permuteDimsin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
reshape
default BartNDArray reshape(int... newShape)
- Specified by:
reshapein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
reshapein interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
selectDims
default BartNDArray selectDims(int... selectedDims)
- Specified by:
selectDimsin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
selectDimsin interfaceio.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:
dropDimsin interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
dropDimsin interfaceio.github.hakkelt.ndarrays.NDArray<org.apache.commons.math3.complex.Complex>
-
squeeze
default BartNDArray squeeze()
- Specified by:
squeezein interfaceio.github.hakkelt.ndarrays.ComplexNDArray<Float>- Specified by:
squeezein interfaceio.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.
-
load
static BartComplexFloatNDArray load(File file) throws IOException
- Throws:
IOException
-
saveToTemp
static File saveToTemp(io.github.hakkelt.ndarrays.NDArray<?> array) throws IOException
- Throws:
IOException
-
save
static void save(io.github.hakkelt.ndarrays.NDArray<?> array, File file) throws IOException- Throws:
IOException
-
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
-
-