Help for this page

Select Code to Download


  1. or download this
    pdl> p $v = pdl split '', '30373'
    [3 0 3 7 3]
    
  2. or download this
    pdl> p cumusumover $v
    [3 3 6 13 16]
    
  3. or download this
    pdl> ?? cumulative
    
  4. or download this
    pdl> p $SLTM
    
    ...
     [1 1 1 0 0]
     [1 1 1 1 0]
    ]
    
  5. or download this
    pdl> p $SLTM * $v
    
    ...
     [3 0 3 0 0]
     [3 0 3 7 0]
    ]
    
  6. or download this
    pdl> p maxover $SLTM * $v
    [0 3 3 3 7]
    
  7. or download this
    pdl> p $v > maxover $SLTM * $v
    [1 0 0 1 0]