Mercurial > hg > camir-aes2014
comparison toolboxes/FullBNT-1.0.7/bnt/potentials/@scgcpot/marginalize_pot.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function smallpot = marginalize_pot(bigpot, keepdom, sumoverdom, nodesizes) | |
2 % MARGINALIZE_POT Marginalize a mpot onto a smaller domain. | |
3 % smallpot = marginalize_pot(bigpot, keep) | |
4 | |
5 keepsize = sum(nodesizes(keepdom)); | |
6 [A1, A2, B1, B2, C11, C12, C21, C22] = partition_matrix_vec_3(bigpot.A, bigpot.B, bigpot.C, keepdom, sumoverdom, nodesizes); | |
7 smallpot = scgcpot(keepsize, bigpot.ctailsize, bigpot.p, A1, B1, C11); |