Package sage :: Package linalg :: Module vector :: Class Vector
[show private | hide private]
[frames | no frames]

Class Vector

Known Subclasses:
Vector_generic_dense, Vector_generic_sparse

Method Summary
  __init__(self, parent)
  __abs__(self)
  __add__(self, right)
  __cmp__(self, right)
  __getitem__(self, i)
  __invert__(self)
  __mod__(self, p)
  __mul__(self, right)
  __neg__(self)
  __pos__(self)
  __pow__(self, n)
  __repr__(self)
  __rmul__(self, left)
  __setitem__(self, i, x)
  __str__(self)
  __sub__(self, right)
  base_field(self)
  base_ring(self)
  copy(self)
  degree(self)
  denominator(self)
  dict(self)
  entries(self)
  get(self, i)
get is meant to be more efficient than getitem, because it does not do any error checking.
  height(self)
  is_dense(self)
  is_sparse(self)
  is_vector(self)
  list(self)
  nonzero_positions(self)
Returns the sorted list of integers i such that self[i] != 0.
  parent(self)
  rational_reconstruction(self)
  set(self, i, x)
set is meant to be more efficient than setitem, because it does not do any error checking or coercion.
  str_latex(self)
Print a latex representation of self.

Method Details

get(self, i)

get is meant to be more efficient than getitem, because it does not do any error checking.

nonzero_positions(self)

Returns the sorted list of integers i such that self[i] != 0.

set(self, i, x)

set is meant to be more efficient than setitem, because it does not do any error checking or coercion. Use with care.

str_latex(self)

Print a latex representation of self. For example, if self is [1,2,3,4], the following latex is generated: (1,2,3,4)

Generated by Epydoc 2.1 on Mon May 9 17:57:02 2005 http://epydoc.sf.net