[top][index]
search for:

Matrix _ ZZ -- get a column from a matrix

Synopsis:

  • Operator: _
  • Input:
  • an instance of class Matrix.
  • an instance of class ZZ.
  • Output:
  • an instance of class Vector.
  • f_i -- provide the i-th column of a matrix f as a vector.

    Vectors are disparaged, so we may do away with this function in the future.

    See also:

  • _
  • Code:

         -- ../../../Macaulay2/m2/matrix.m2:96-100
         Matrix _ ZZ := Vector => (m,i) -> (
              if 0 <= i and i < numgens source m then (
                   sendgg (ggPush m, ggPush i, ggelem);
                   new m.target)
              else error ("subscript '", toString i, "' out of range"))

    [top][index]
    search for: