Macaulay2 » Documentation
Packages » Hadamard :: hadamardPower(List,ZZ)
next | previous | forward | backward | up | index | toc

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  
o2 = {Point{1, 4, 8}, Point{1, 0, 16}, Point{1, 0, 1}, Point{1, 1, -},
                                                                   8  
     ------------------------------------------------------------------------
                                 1                                           
     Point{1, 0, 2}, Point{1, 0, -}, Point{1, 2, 1}, Point{1, 0, 4}, Point{1,
                                 2                                           
     ------------------------------------------------------------------------
        1
     0, -}, Point{1, 8, 64}}
        4

o2 : List

Ways to use this method: