logsumsparse.m
来自「Continuous Profile Models (CPM) Matlab T」· M 代码 · 共 19 行
M
19 行
function result = logsumSparse(xx,G)%function result = logsumSparse(xx,dim)% Wrapper for MEX function which computes logsum of a sparse% matrix, ignoring the entries which are not present (rather% than treating them as zeros).%% NOTE: ONLY WORKS FOR DIM=1%global LOGREALMAXDIV2%global TWOLOGNUMSTATESalpha = max(xx,[],1) - log(realmax)/2 + 2*log(G.numStates);%alpha = max(xx,[],1) - LOGREALMAXDIV2 + TWOLOGNUMSTATES;result=logsumSparseMEX(xx,alpha);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?