def _get_log_prior_cl_func ( self ) : return SimpleCLFunction . from_string ( '''
            mot_float_type _computeLogPrior(local const mot_float_type* x, void* data){
                return ''' + self . _log_prior_func . get_cl_function_name ( ) + '''(x, data);
            }
        ''' , dependencies = [ self . _log_prior_func ] )
how to calculate logprior in python
Get the CL log prior compute function .
def _get_log_prior_cl_func(self):
        """Get the CL log prior compute function.

        Returns:
            str: the compute function for computing the log prior.
        """
        return SimpleCLFunction.from_string('''
            mot_float_type _computeLogPrior(local const mot_float_type* x, void* data){
                return ''' + self._log_prior_func.get_cl_function_name() + '''(x, data);
            }
        ''', dependencies=[self._log_prior_func])