photo

Petr


Attivo dal 2013

Followers: 0   Following: 0

Messaggio

Hello, I have a question about MEX and accessing data structures. There is a problem:
I have a matlab structure as follows
d(1).x=uint32([1 2 4]);
d(1).y=single([0.5 0.3 0.1]);
d(2).x=uint32([3 6 9 7 5 6]);
d(2).y=single([0.3 0.6 0.9 1.1 0.3 0.2];
...
d(n).x=uint32(...
d(n).y=single(...

The data structure is huge (~20GB) hence I wan to avoid to make a copy. I am not very familiar with MEX. How can I get pointers to data structure elements?

For instance to
d(2).x(5)
d(2).y(5)
d(1).x(2)
d(1).y(2)

The structure 'd' is in fact an inverted file structure of a sparse matrix and I will need to do some multiplications. Thank you!

Statistica

MATLAB Answers

1 Domanda
0 Risposte

RANK
71.313
of 301.078

REPUTAZIONE
0

CONTRIBUTI
1 Domanda
0 Risposte

ACCETTAZIONE DELLE RISPOSTE
0.0%

VOTI RICEVUTI
0

RANK
 of 21.165

REPUTAZIONE
N/A

VALUTAZIONE MEDIA
0.00

CONTRIBUTI
0 File

DOWNLOAD
0

ALL TIME DOWNLOAD
0

RANK

of 172.702

CONTRIBUTI
0 Problemi
0 Soluzioni

PUNTEGGIO
0

NUMERO DI BADGE
0

CONTRIBUTI
0 Post

CONTRIBUTI
0 Pubblico Canali

VALUTAZIONE MEDIA

CONTRIBUTI
0 Punti principali

NUMERO MEDIO DI LIKE

Feeds

Visto da

Domanda


MEX: pointers to a matlab structure
Hello, I have the following problem. There is a Matlab structure as follows: d(1).x=uint32([1 4 6 7 ]); d(1).y=s...

oltre 12 anni fa | 1 risposta | 0

1

risposta