We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to support System.Numerics.Complex
Today that has to be done through a [float float] compound, correct?
[float float]
The text was updated successfully, but these errors were encountered:
@brechtvb , Yeah I don't think H5 data type has native complex type. It will have to be split into 2 fields.
Sorry, something went wrong.
https://mathematica.stackexchange.com/questions/63983/hdf5-and-complex-numbers
Indeed, there is no other way.
An ugly hack could be provided through issue #236:
unsafe public void Write(Guid guid, ReadOnlySpan<double> valuePath, ReadOnlySpan<Complex> cdata, string groupName) { var groupId = h5.Hdf5.CreateGroupRecursively(hfile, loc(guid, valuePath)); fixed (Complex* cptr = cdata) { double* dptr = (double*)cptr; var ddata = new ReadOnlySpan<double>(dptr, cdata.Length * 2); var ds = h5.Hdf5.WriteDatasetFromArray<double>(groupId, groupName, ddata.ToArray()); } }
No branches or pull requests
Is it possible to support System.Numerics.Complex
Today that has to be done through a
[float float]
compound, correct?The text was updated successfully, but these errors were encountered: