Help for this page

Select Code to Download


  1. or download this
    perldl> $a = sequence(5)
    perldl> $b = pdl [1,4,9,16]
    ...
    [0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0]
    # This looks like all the rows of the matrix concatenated.
    # And look, the values at 1 and 9 are the only true ones
    
  2. or download this
    $c_flat_pos = $c_dim_0_pos + $c_dim_1_pos * $sizeof_c_dim_0
    
  3. or download this
    $c_flat_pos = $index_in_a + ($index_in_b * $sizeof_a)