factored out fn in c++ code
factored out fn in c++ code

theDataGeek/pyhsmm,fivejjs/pyhsmm,wgmueller1/pyhsmm,mattjj/pyhsmm,bikash/pyhsmm,wgmueller1/pyhsmm,theDataGeek/pyhsmm,wgmueller1/pyhsmm,bikash/pyhsmm,bikash/pyhsmm,fivejjs/pyhsmm,fivejjs/pyhsmm,theDataGeek/pyhsmm,wgmueller1/pyhsmm,wgmueller1/pyhsmm,fivejjs/pyhsmm,fivejjs/pyhsmm,theDataGeek/pyhsmm,theDataGeek/pyhsmm,mattjj/pyhsmm