PyTrilinos::Epetra::Vector Class Reference

Inheritance diagram for PyTrilinos::Epetra::Vector:

Inheritance graph
[legend]
Collaboration diagram for PyTrilinos::Epetra::Vector:

Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __init__
def __initArray__
def __getitem__
def __getslice__
def __str__
def __lt__
def __le__
def __eq__
def __ne__
def __gt__
def __ge__
def __getattr__
def __setattr__
def __init__
def __init__
def __initArray__
def __getitem__
def __getslice__
def __str__
def __lt__
def __le__
def __eq__
def __ne__
def __gt__
def __ge__
def __getattr__
def __setattr__

Public Attributes

 this


Detailed Description

Proxy of C++ Vector class

Epetra.Vector: A class for constructing and using dense vectors on a
parallel computer.

The Epetra.Vector class enables the construction and use of real- valued,
double- precision dense vectors in a distributed memory environment. The
distribution of the dense vector is determined in part by a Epetra.Comm
object and a Epetra.Map (or Epetra.LocalMap or Epetra.BlockMap).

This class is derived from the Epetra.MultiVector class. As such, it has
full access to all of the functionality provided in the Epetra.MultiVector
class.

Distributed Global vs. Replicated Local Distributed Global Vectors - In most
instances, a multi-vector will be partitioned across multiple memory images
associated with multiple processors. In this case, there is a unique copy of
each element and elements are spread across all processors specified by the
Epetra.Comm communicator.

Replicated Local Vectors - Some algorithms use vectors that are too small to
be distributed across all processors. Replicated local vectors handle these
types of situation.

In the python implementation, the Vector stores an underlying numpy array,
with which it shares the data buffer.  Also, almost all numpy array methods
and operators are supported.

Member Function Documentation

def PyTrilinos::Epetra::Vector::__eq__ (   self,
  other 
)

__eq__(self, other) -> bool

Equal operator (==).

def PyTrilinos::Epetra::Vector::__eq__ (   self,
  other 
)

__eq__(self, other) -> bool

Equal operator (==).

def PyTrilinos::Epetra::Vector::__ge__ (   self,
  other 
)

__ge__(self, other) -> bool

Greater-than or equal operator (>=).

def PyTrilinos::Epetra::Vector::__ge__ (   self,
  other 
)

__ge__(self, other) -> bool

Greater-than or equal operator (>=).

def PyTrilinos::Epetra::Vector::__getitem__ (   self,
  index 
)

x.__getitem__(y) <==> x[y]

def PyTrilinos::Epetra::Vector::__getitem__ (   self,
  index 
)

x.__getitem__(y) <==> x[y]

def PyTrilinos::Epetra::Vector::__getslice__ (   self,
  i,
  j 
)

x.__getslice__(i,j) <==> x[i:j]

def PyTrilinos::Epetra::Vector::__getslice__ (   self,
  i,
  j 
)

x.__getslice__(i,j) <==> x[i:j]

def PyTrilinos::Epetra::Vector::__gt__ (   self,
  other 
)

__gt__(self, other) -> bool

Greater-than operator (>).

def PyTrilinos::Epetra::Vector::__gt__ (   self,
  other 
)

__gt__(self, other) -> bool

Greater-than operator (>).

def PyTrilinos::Epetra::Vector::__init__ (   self,
  args 
)

__init__(self, BlockMap map, bool zeroOut=True) -> Vector
__init__(self, Vector source) -> Vector
__init__(self, BlockMap map, PyObject array) -> Vector
__init__(self, DataAccess CV, Vector source) -> Vector
__init__(self, DataAccess CV, MultiVector source, PyObject index) -> Vector
__init__(self, PyObject array) -> Vector

Arguments:
    map         - BlockMap describing domain decomposition
    zeroOut     - Flag controlling whether to initialize MultiVector to
          zero
    source      - Source Vector or MultiVector for copy constructors
    array       - Python sequence that can be converted to a numpy array
          of doubles for initialization
    CV          - Epetra.Copy or Epetra.View
    index       - MultiVector vector index for copy constructor

Reimplemented from PyTrilinos::Epetra::NumPyVector.

def PyTrilinos::Epetra::Vector::__init__ (   self,
  args 
)

__init__(self) -> Vector

Reimplemented from PyTrilinos::Epetra::NumPyVector.

def PyTrilinos::Epetra::Vector::__init__ (   self,
  args 
)

__init__(self, BlockMap map, bool zeroOut=True) -> Vector
__init__(self, Vector source) -> Vector
__init__(self, BlockMap map, PyObject array) -> Vector
__init__(self, DataAccess CV, Vector source) -> Vector
__init__(self, DataAccess CV, MultiVector source, PyObject index) -> Vector
__init__(self, PyObject array) -> Vector

Arguments:
    map         - BlockMap describing domain decomposition
    zeroOut     - Flag controlling whether to initialize MultiVector to
          zero
    source      - Source Vector or MultiVector for copy constructors
    array       - Python sequence that can be converted to a numpy array
          of doubles for initialization
    CV          - Epetra.Copy or Epetra.View
    index       - MultiVector vector index for copy constructor

Reimplemented from PyTrilinos::Epetra::NumPyVector.

def PyTrilinos::Epetra::Vector::__init__ (   self,
  args 
)

__init__(self) -> Vector

Reimplemented from PyTrilinos::Epetra::NumPyVector.

def PyTrilinos::Epetra::Vector::__initArray__ (   self  ) 

__initArray__(self)

Initialize the underlying numpy array.

def PyTrilinos::Epetra::Vector::__initArray__ (   self  ) 

__initArray__(self)

Initialize the underlying numpy array.

def PyTrilinos::Epetra::Vector::__le__ (   self,
  other 
)

__le__(self, other) -> bool

Less-than-or-equal operator (<=).

def PyTrilinos::Epetra::Vector::__le__ (   self,
  other 
)

__le__(self, other) -> bool

Less-than-or-equal operator (<=).

def PyTrilinos::Epetra::Vector::__lt__ (   self,
  other 
)

__lt__(self, other) -> bool

Less-than operator (<).

def PyTrilinos::Epetra::Vector::__lt__ (   self,
  other 
)

__lt__(self, other) -> bool

Less-than operator (<).

def PyTrilinos::Epetra::Vector::__ne__ (   self,
  other 
)

__ne__(self, other) -> bool

Not-equal operator (!=).

def PyTrilinos::Epetra::Vector::__ne__ (   self,
  other 
)

__ne__(self, other) -> bool

Not-equal operator (!=).

def PyTrilinos::Epetra::Vector::__str__ (   self  ) 

__str__(self) -> string

Return the numpy-style string representation of the MultiVector.

def PyTrilinos::Epetra::Vector::__str__ (   self  ) 

__str__(self) -> string

Return the numpy-style string representation of the MultiVector.


The documentation for this class was generated from the following files:

Generated on Thu Dec 17 11:00:21 2009 for PyTrilinos by  doxygen 1.5.9