Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » lists and sequences » BasicList » Vector » Vector || Vector
next | previous | forward | backward | up | index | toc

# Vector || Vector -- join vectors

- Operator: ||
- Usage:
    `v || w`
- Inputs:
  - v, a vector
  - w, a vector
- Outputs:
  - a vector, obtained from vectors v and w by concatenating the columns.

## Description

    i1 : R = (ZZ[x,y,z])^3;

    i2 : v = vector {1,x,x*y,x*z,x*y*z}

    o2 = |  1  |
         |  x  |
         |  xy |
         |  xz |
         | xyz |

                   5
    o2 : (ZZ[x..z])

    i3 : w = vector {z*x,z^2,3}

    o3 = | xz |
         | z2 |
         |  3 |

                   3
    o3 : (ZZ[x..z])

    i4 : v || w

    o4 = |  1  |
         |  x  |
         |  xy |
         |  xz |
         | xyz |
         |  xz |
         |  z2 |
         |  3  |

                   8
    o4 : (ZZ[x..z])

## See also

- Matrix || Matrix -- join matrices vertically

## Ways to use this method:

- Vector || Vector -- join vectors

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Macaulay2Doc/operators/concatenate.m2:99:0.