 policy, s);

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

  <span class="keyword">case</span> <span class="string">'dMds'</span>
      [dd dy dh] = checkgrad(@conT3, s(tril(ones(d))==1), delta, policy, m);

  <span class="keyword">case</span> <span class="string">'dSds'</span>
      [dd dy dh] = checkgrad(@conT4, s(tril(ones(d))==1), delta, policy, m);

  <span class="keyword">case</span> <span class="string">'dCds'</span