I want to create a complex matrix in nd4j with the method `Nd4j.complexOnes(new int[]{1});`.
Sadly I get the following error:
Exception in thread "main" java.lang.UnsupportedOperationException
at org.nd4j.linalg.api.complex.BaseComplexNDArray.<init>(BaseComplexNDArray.java:244)
at org.nd4j.linalg.api.complex.BaseComplexNDArray.<init>(BaseComplexNDArray.java:532)
at org.nd4j.linalg.cpu.nativecpu.complex.ComplexNDArray.<init>(ComplexNDArray.java:227)
at org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory.createComplex(CpuNDArrayFactory.java:257)
at org.nd4j.linalg.factory.BaseNDArrayFactory.createComplex(BaseNDArrayFactory.java:1558)
at org.nd4j.linalg.factory.BaseNDArrayFactory.createComplex(BaseNDArrayFactory.java:1672)
at org.nd4j.linalg.factory.BaseNDArrayFactory.complexOnes(BaseNDArrayFactory.java:1281)
at org.nd4j.linalg.factory.Nd4j.complexOnes(Nd4j.java:5809)
at de.GameOfReal.Multipliers.<init>(Multipliers.java:34)
at de.GameOfReal.Multipliers.<init>(Multipliers.java:20)
at de.GameOfReal.GameOfReal.<init>(GameOfReal.java:33)
at de.GameOfReal.Main.<init>(Main.java:12)
at de.GameOfReal.Main.main(Main.java:26)
I am using the following versions:
implementation 'org.nd4j:nd4j-api:0.9.1'
implementation 'org.nd4j:nd4j-native:0.9.1'
implementation 'org.nd4j:nd4j-native-platform:0.9.1'
To give more context, I wanted to use Fourier Transformation on a normal NDArray, but any FFT function did not work and I found out that it was caused by not being able to create complex matrices.
I hope that I could give enough details, if you have questions, I'll answer right away.
with kind regards,
Felix