Help for this page

Select Code to Download


  1. or download this
    which( maximum( ($a->dummy == $b) ) != 0)
    
  2. or download this
    which( maximum( $a->dummy == $b ) )
    
  3. or download this
    # The one I basically handed you. Catches duplicates.
    $c = which( $a == $b->dummy ) % $a->dim(0);
    ...
    
    # Using summation. Like yours, ignores duplicates.
    $c = which( sumover( $a->dummy == $b ) );