next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Hadamard :: hadamardPower(List,ZZ)

hadamardPower(List,ZZ) -- computes the $r$-th Hadmard powers of a set points

Synopsis

Description

Give a set of points $L$, the $r$-th Hadamard power of $L$ is $r$-times Hadamard product of L to itself; $( L x\cdots x L)_{r-times}$

i1 : L={point{1,1,1/2},point{1,0,1},point{1,2,4}}

                  1
o1 = {Point{1, 1, -}, Point{1, 0, 1}, Point{1, 2, 4}}
                  2

o1 : List
i2 : hadamardPower(L,3)

                  1               1                                  
o2 = {Point{1, 1, -}, Point{1, 0, -}, Point{1, 0, 2}, Point{1, 2, 1},
                  8               2                                  
     ------------------------------------------------------------------------
                                 1
     Point{1, 0, 4}, Point{1, 0, -}, Point{1, 8, 64}, Point{1, 4, 8},
                                 4
     ------------------------------------------------------------------------
     Point{1, 0, 16}, Point{1, 0, 1}}

o2 : List