Help for this page

Select Code to Download


  1. or download this
    use PDL;
    my $pdl_a = pdl 10..20;
    my $pdl_b = pdl 15..18;
    print "$pdl_a\n$pdl_b\n";
    
  2. or download this
    [10 11 12 13 14 15 16 17 18 19 20]
    [15 16 17 18]
    
  3. or download this
    use PDL;
    my $pdl_a = pdl 10..20;
    my $pdl_b = pdl 15..18;
    my $pdl_c = INTERSECTION OF PDL_A AND PDL_B
    print "$pdl_a\n$pdl_b\n$pdl_c\n";
    
  4. or download this
    [10 11 12 13 14 15 16 17 18 19 20]
    [15 16 17 18]
    [15 16 17 18]