5.2.1.1 Vector Objects

class Vector
Vector( parent)

Instances of class Vector have the following methods (in addition to inherited methods and special methods):

get,$  $ nonzero_positions,$  $ set,$  $ str_latex

These methods are defined as follows:

get( i)

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

nonzero_positions( )

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

set( 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( )

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

See About this document... for information on suggesting changes.