papi_base & papi_base::operator-=(const papi_base & other) {
	for( uint32_t i = 0; i < values_.size(); ++i ) {
		values_[ i ] = absolute_difference( values_[ i ], other.values_[ i ] );
	}
	return *this;
}
示例#2
0
uint8_t neighbors(point node1, point node2)
{
  if ((absolute_difference(node1.x,node2.x) == 1) || (absolute_difference(node1.y,node2.y) == 1)) return 1;
  return 0;
}