Complex Variables and Memory mapping
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
does anyone know if it is possible to use memory mapping with complex variables? I wanted to use the memmapfile constructor for it, but it seems to support only doubles and integers.
thank you in advance
Hi,
weiß jemand ob es möglich ist komplexe Variabeln mit Memorymapping zu nutzen? Ich wollte dafür den memmapfile constructor nutzen, aber der scheint Komplexe Zahlen nicht zu unterstützen.
Im Vorraus schon mal vielen Dank
Salut
est-ce que quelqu’un sache si il est possible de utiliser Memory Mapping por des variables complexe?
Merci
0 Kommentare
Antworten (1)
José-Luis
am 7 Nov. 2012
Bearbeitet: José-Luis
am 7 Nov. 2012
Yes, but you would need to use the C/C++ or FORTRAN api. It provides you with a variety of routines to handle .mat files. If you want to do bit operations on those files (or why do you want to do memory mapping?) then you might need to dig a little bit further, and look at how mat files are configured. In my opinion, you need to have a very good reason to do those kind of manipulations, as it very easy to corrupt your files. It is often enough to use the api.
5 Kommentare
José-Luis
am 8 Nov. 2012
Bearbeitet: José-Luis
am 8 Nov. 2012
Well, the HDF5 has a C/C++ and Fortran interface, which means that you could use the C/C++ api to manage your files. I have never actually used complex values. You could of course save your complex and real values in different files, but that's just asking for future headaches.
I also have no idea what your access patterns are going to be, but if you really have such large data, it might be worth using databases (MySQL pops to mind).
Sorry I can't be of more help.
Siehe auch
Kategorien
Mehr zu HDF5 finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!