コード例 #1
0
ファイル: histogram.hpp プロジェクト: dcoeurjo/stk
void Histogram<DIM, POS, VAL>::operator-=(const Histogram<DIM, POS, VAL>& i_histo)
{
	if(i_histo.getSize() != this->getSize())
	{
		throw exception::Message("Histogram::operator+= wrong size", STK_DBG_INFO);
	}
	
	for(int i=0; i<this->getArraySize(); i++)
	{
		this->getFromIndice(i) -= i_histo.getFromIndice(i);
	}
}