>
      [dd dy dh] = checkgrad(@conT5, s(tril(ones(d))==1), delta, policy, m);

  <span class="keyword">case</span> <span class="string">'dMdp'</span>
      [dd dy dh] = checkgrad(@conT6, policy.p, delta, policy, m, s);

  <span class="keyword">case</span> <span class="string">'dSdp'</span>
      [dd dy dh] = checkgrad(@conT7, policy.p, delta, policy, m, s);

  <span class="keyword">case</span> <span class="string">'dCdp'</span>
      [dd dy dh] = checkgrad(@conT8, policy.p, delta, policy, m, s);

<span cla