Discrete-Event Solver Roadmap

2024-04-19 14:07

对象数组

Node: nodeID
Edge: Node *pEndNodeFrm; Node *pEndNodeTo

G(V, E)

nodes: Node [3]

edges: Edge [6]

For a three-node example,

We have nodes[0] (nodeID = 1), nodes[1] (nodeID = 2); nodes[2] (nodeID = 3)
edges[0].pEndNodeFrm = &nodes[0];
edges[0].pEndNodeTo = &nodes[1];

2024-04-22 09:21

how mex works with dll: https://www.mathworks.com/matlabcentral/answers/485505-building-a-mex-function-that-depends-on-a-dll-lib-and-headers
how boost graph library works: https://www.boost.org/doc/libs/1_78_0/libs/graph/doc/index.html
convert a table to struct: https://www.mathworks.com/matlabcentral/answers/284650-is-it-possible-to-get-a-table-from-an-mxarray-in-a-mex-function
use mex to read struct: https://www.mathworks.com/help/matlab/matlab_external/passing-structures-and-cell-arrays.html

2024-05-21 11:15
通过调用dll和header文件,调用dll内部的class。比如Clock c

下一步就是陈宇负责主写matlab代码,当着刘家楠的面,每次写大概100行matlab代码。刘家楠负责把对应的matlab代码转换为c++代码。陈宇负责code review

2024-06-07 14:07

simd and simt

2024-06-24 14:28

用clion和msys2,重修做一次simd

重新做一次lindley 公式,用simd和正常的for循环,看系统是否有增益

https://www.mathworks.com/matlabcentral/answers/452267-can-i-generate-dlls-using-matlab-coder

posted @ 2024-04-19 14:20  ChrainY  阅读(14)  评论(0编辑  收藏  举报