photo

Petr


2013 年からアクティブ

Followers: 0   Following: 0

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!

統計

MATLAB Answers

1 質問
0 回答

ランク
231,097
of 301,298

評判
0

コントリビューション
1 質問
0 回答

回答採用率
0.0%

獲得投票数
0

ランク
 of 21,225

評判
N/A

平均評価
0.00

コントリビューション
0 ファイル

ダウンロード
0

ALL TIME ダウンロード
0

ランク

of 173,851

コントリビューション
0 問題
0 解答

スコア
0

バッジ数
0

コントリビューション
0 投稿

コントリビューション
0 パブリック チャネル

平均評価

コントリビューション
0 ハイライト

平均いいねの数

Feeds

表示方法

質問


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...

12年以上 前 | 1 件の回答 | 0

1

回答