PyTrilinos::Epetra::Epetra_SerialDenseMatrix Class Reference

Inheritance diagram for PyTrilinos::Epetra::Epetra_SerialDenseMatrix:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def Shape
def Reshape
def Multiply
def Scale
def NormOne
def NormInf
def __eq__
def __ne__
def __iadd__
def __call__
def Random
def M
def N
def A
def LDA
def CV
def OneNorm
def InfNorm
def SetUseTranspose
def Apply
def ApplyInverse
def Label
def UseTranspose
def HasNormInf
def RowDim
def ColDim
def __init__
def Shape
def Reshape
def Multiply
def Scale
def NormOne
def NormInf
def __eq__
def __ne__
def __iadd__
def __call__
def Random
def M
def N
def A
def LDA
def CV
def OneNorm
def InfNorm
def SetUseTranspose
def Apply
def ApplyInverse
def Label
def UseTranspose
def HasNormInf
def RowDim
def ColDim

Public Attributes

 this


Detailed Description

Epetra_SerialDenseMatrix: A class for constructing and using real
double precision general dense matrices.

The Epetra_SerialDenseMatrix class enables the construction and use of
real-valued, general, double-precision dense matrices. It is built on
the BLAS, and derives from the Epetra_BLAS.

The Epetra_SerialDenseMatrix class is intended to provide very basic
support for dense rectangular matrices.

Constructing Epetra_SerialDenseMatrix Objects

There are four Epetra_SerialDenseMatrix constructors. The first
constructs a zero-sized object which should be made to appropriate
length using the Shape() or Reshape() functions and then filled with
the [] or () operators. The second constructs an object sized to the
dimensions specified, which should be filled with the [] or ()
operators. The third is a constructor that accepts user data as a 2D
array, and the fourth is a copy constructor. The third constructor has
two data access modes (specified by the Epetra_DataAccess argument):
Copy mode - Allocates memory and makes a copy of the user-provided
data. In this case, the user data is not needed after construction.

View mode - Creates a "view" of the user data. In this case, the
user data is required to remain intact for the life of the object.

WARNING:  View mode is extremely dangerous from a data hiding
perspective. Therefore, we strongly encourage users to develop code
using Copy mode first and only use the View mode in a secondary
optimization phase.  Extracting Data from Epetra_SerialDenseMatrix
Objects

Once a Epetra_SerialDenseMatrix is constructed, it is possible to view
the data via access functions.

WARNING:  Use of these access functions cam be extremely dangerous
from a data hiding perspective.  Vector and Utility Functions

Once a Epetra_SerialDenseMatrix is constructed, several mathematical
functions can be applied to the object. Specifically: Multiplication.

Norms.

Counting floating point operations The Epetra_SerialDenseMatrix class
has Epetra_CompObject as a base class. Thus, floating point operations
are counted and accumulated in the Epetra_Flop object (if any) that
was set using the SetFlopCounter() method in the Epetra_CompObject
base class.

C++ includes: Epetra_SerialDenseMatrix.h 

Member Function Documentation

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::__call__ (   self,
  args 
)

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::__call__ (   self,
  args 
)

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::__eq__ (   self,
  args 
)

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::__eq__ (   self,
  args 
)

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::__iadd__ (   self,
  args 
)

__iadd__(self, Epetra_SerialDenseMatrix Source) -> Epetra_SerialDenseMatrix

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::__iadd__ (   self,
  args 
)

__iadd__(self, Epetra_SerialDenseMatrix Source) -> Epetra_SerialDenseMatrix

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

__init__(self, bool set_object_label = True) -> Epetra_SerialDenseMatrix
__init__(self) -> Epetra_SerialDenseMatrix
__init__(self, int NumRows, int NumCols, bool set_object_label = True) -> Epetra_SerialDenseMatrix
__init__(self, int NumRows, int NumCols) -> Epetra_SerialDenseMatrix
__init__(self, Epetra_DataAccess CV, double A_in, int LDA_in, int NumRows, 
    int NumCols, bool set_object_label = True) -> Epetra_SerialDenseMatrix
__init__(self, Epetra_DataAccess CV, double A_in, int LDA_in, int NumRows, 
    int NumCols) -> Epetra_SerialDenseMatrix
__init__(self, Epetra_SerialDenseMatrix Source) -> Epetra_SerialDenseMatrix

Epetra_SerialDenseMatrix::Epetra_SerialDenseMatrix(const
Epetra_SerialDenseMatrix &Source)

Epetra_SerialDenseMatrix copy constructor. 

Reimplemented from PyTrilinos::Epetra::Object.

Reimplemented in PyTrilinos::Epetra::SerialDenseMatrix, PyTrilinos::Epetra::SerialSymDenseMatrix, PyTrilinos::Epetra::SerialDenseVector, PyTrilinos::Epetra::Epetra_SerialDenseVector, PyTrilinos::Epetra::NumPySerialDenseMatrix, PyTrilinos::Epetra::SerialDenseMatrix, PyTrilinos::Epetra::NumPySerialDenseVector, PyTrilinos::Epetra::SerialDenseVector, PyTrilinos::Epetra::SerialDenseMatrix, PyTrilinos::Epetra::SerialSymDenseMatrix, PyTrilinos::Epetra::SerialDenseVector, PyTrilinos::Epetra::Epetra_SerialDenseVector, PyTrilinos::Epetra::NumPySerialDenseMatrix, PyTrilinos::Epetra::SerialDenseMatrix, PyTrilinos::Epetra::NumPySerialDenseVector, and PyTrilinos::Epetra::SerialDenseVector.

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

__init__(self, bool set_object_label = True) -> Epetra_SerialDenseMatrix
__init__(self) -> Epetra_SerialDenseMatrix
__init__(self, int NumRows, int NumCols, bool set_object_label = True) -> Epetra_SerialDenseMatrix
__init__(self, int NumRows, int NumCols) -> Epetra_SerialDenseMatrix
__init__(self, Epetra_DataAccess CV, double A_in, int LDA_in, int NumRows, 
    int NumCols, bool set_object_label = True) -> Epetra_SerialDenseMatrix
__init__(self, Epetra_DataAccess CV, double A_in, int LDA_in, int NumRows, 
    int NumCols) -> Epetra_SerialDenseMatrix
__init__(self, Epetra_SerialDenseMatrix Source) -> Epetra_SerialDenseMatrix

Epetra_SerialDenseMatrix::Epetra_SerialDenseMatrix(const
Epetra_SerialDenseMatrix &Source)

Epetra_SerialDenseMatrix copy constructor. 

Reimplemented from PyTrilinos::Epetra::Object.

Reimplemented in PyTrilinos::Epetra::SerialDenseMatrix, PyTrilinos::Epetra::SerialSymDenseMatrix, PyTrilinos::Epetra::SerialDenseVector, PyTrilinos::Epetra::Epetra_SerialDenseVector, PyTrilinos::Epetra::NumPySerialDenseMatrix, PyTrilinos::Epetra::SerialDenseMatrix, PyTrilinos::Epetra::NumPySerialDenseVector, PyTrilinos::Epetra::SerialDenseVector, PyTrilinos::Epetra::SerialDenseMatrix, PyTrilinos::Epetra::SerialSymDenseMatrix, PyTrilinos::Epetra::SerialDenseVector, PyTrilinos::Epetra::Epetra_SerialDenseVector, PyTrilinos::Epetra::NumPySerialDenseMatrix, PyTrilinos::Epetra::SerialDenseMatrix, PyTrilinos::Epetra::NumPySerialDenseVector, and PyTrilinos::Epetra::SerialDenseVector.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::__ne__ (   self,
  args 
)

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::__ne__ (   self,
  args 
)

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::A (   self  ) 

A(self) -> double

double*
Epetra_SerialDenseMatrix::A()

Returns pointer to the this matrix. 

Reimplemented in PyTrilinos::Epetra::NumPySerialDenseMatrix, and PyTrilinos::Epetra::NumPySerialDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::A (   self  ) 

A(self) -> double

double*
Epetra_SerialDenseMatrix::A()

Returns pointer to the this matrix. 

Reimplemented in PyTrilinos::Epetra::NumPySerialDenseMatrix, and PyTrilinos::Epetra::NumPySerialDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Apply (   self,
  args 
)

Apply(self, Epetra_SerialDenseMatrix X, Epetra_SerialDenseMatrix Y) -> int

int
Epetra_SerialDenseMatrix::Apply(const Epetra_SerialDenseMatrix &X,
Epetra_SerialDenseMatrix &Y)

Returns the result of a Epetra_SerialDenseOperator applied to a
Epetra_SerialDenseMatrix X in Y.

Parameters:
-----------

In:  X - A Epetra_SerialDenseMatrix to multiply with operator.

Out:  Y -A Epetra_SerialDenseMatrix containing result.

Integer error code, set to 0 if successful. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Apply (   self,
  args 
)

Apply(self, Epetra_SerialDenseMatrix X, Epetra_SerialDenseMatrix Y) -> int

int
Epetra_SerialDenseMatrix::Apply(const Epetra_SerialDenseMatrix &X,
Epetra_SerialDenseMatrix &Y)

Returns the result of a Epetra_SerialDenseOperator applied to a
Epetra_SerialDenseMatrix X in Y.

Parameters:
-----------

In:  X - A Epetra_SerialDenseMatrix to multiply with operator.

Out:  Y -A Epetra_SerialDenseMatrix containing result.

Integer error code, set to 0 if successful. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::ApplyInverse (   self,
  args 
)

ApplyInverse(self, Epetra_SerialDenseMatrix X, Epetra_SerialDenseMatrix Y) -> int

virtual int Epetra_SerialDenseMatrix::ApplyInverse(const
Epetra_SerialDenseMatrix &X, Epetra_SerialDenseMatrix &Y)

Returns the result of a Epetra_SerialDenseOperator inverse applied to
an Epetra_SerialDenseMatrix X in Y.

Parameters:
-----------

In:  X - A Epetra_SerialDenseMatrix to solve for.

Out:  Y -A Epetra_SerialDenseMatrix containing result.

Integer error code, set to 0 if successful. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::ApplyInverse (   self,
  args 
)

ApplyInverse(self, Epetra_SerialDenseMatrix X, Epetra_SerialDenseMatrix Y) -> int

virtual int Epetra_SerialDenseMatrix::ApplyInverse(const
Epetra_SerialDenseMatrix &X, Epetra_SerialDenseMatrix &Y)

Returns the result of a Epetra_SerialDenseOperator inverse applied to
an Epetra_SerialDenseMatrix X in Y.

Parameters:
-----------

In:  X - A Epetra_SerialDenseMatrix to solve for.

Out:  Y -A Epetra_SerialDenseMatrix containing result.

Integer error code, set to 0 if successful. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::ColDim (   self  ) 

ColDim(self) -> int

virtual int
Epetra_SerialDenseMatrix::ColDim() const

Returns the column dimension of operator. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::ColDim (   self  ) 

ColDim(self) -> int

virtual int
Epetra_SerialDenseMatrix::ColDim() const

Returns the column dimension of operator. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::CV (   self  ) 

CV(self) -> Epetra_DataAccess

Epetra_DataAccess Epetra_SerialDenseMatrix::CV() const

Returns the data access mode of the this matrix. 

Reimplemented in PyTrilinos::Epetra::Epetra_SerialDenseVector, and PyTrilinos::Epetra::Epetra_SerialDenseVector.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::CV (   self  ) 

CV(self) -> Epetra_DataAccess

Epetra_DataAccess Epetra_SerialDenseMatrix::CV() const

Returns the data access mode of the this matrix. 

Reimplemented in PyTrilinos::Epetra::Epetra_SerialDenseVector, and PyTrilinos::Epetra::Epetra_SerialDenseVector.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::HasNormInf (   self  ) 

HasNormInf(self) -> bool

virtual
bool Epetra_SerialDenseMatrix::HasNormInf() const

Returns true if the this object can provide an approximate Inf-norm,
false otherwise. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::HasNormInf (   self  ) 

HasNormInf(self) -> bool

virtual
bool Epetra_SerialDenseMatrix::HasNormInf() const

Returns true if the this object can provide an approximate Inf-norm,
false otherwise. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::InfNorm (   self  ) 

InfNorm(self) -> double

virtual
double Epetra_SerialDenseMatrix::InfNorm() const

Computes the Infinity-Norm of the this matrix (identical to NormInf()
method). 

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::SerialSymDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::InfNorm (   self  ) 

InfNorm(self) -> double

virtual
double Epetra_SerialDenseMatrix::InfNorm() const

Computes the Infinity-Norm of the this matrix (identical to NormInf()
method). 

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::SerialSymDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Label (   self  ) 

Label(self) -> char

virtual const
char* Epetra_SerialDenseMatrix::Label() const

Returns a character string describing the operator. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Label (   self  ) 

Label(self) -> char

virtual const
char* Epetra_SerialDenseMatrix::Label() const

Returns a character string describing the operator. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::LDA (   self  ) 

LDA(self) -> int

int
Epetra_SerialDenseMatrix::LDA() const

Returns the leading dimension of the this matrix. 

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::LDA (   self  ) 

LDA(self) -> int

int
Epetra_SerialDenseMatrix::LDA() const

Returns the leading dimension of the this matrix. 

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::M (   self  ) 

M(self) -> int

int
Epetra_SerialDenseMatrix::M() const

Returns row dimension of system. 

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::M (   self  ) 

M(self) -> int

int
Epetra_SerialDenseMatrix::M() const

Returns row dimension of system. 

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Multiply (   self,
  args 
)

Multiply(self, char TransA, char TransB, double ScalarAB, Epetra_SerialDenseMatrix A, 
    Epetra_SerialDenseMatrix B, 
    double ScalarThis) -> int
Multiply(self, bool transA, Epetra_SerialDenseMatrix x, Epetra_SerialDenseMatrix y) -> int
Multiply(self, char SideA, double ScalarAB, SerialSymDenseMatrix A, 
    Epetra_SerialDenseMatrix B, double ScalarThis) -> int

int
Epetra_SerialDenseMatrix::Multiply(char SideA, double ScalarAB, const
Epetra_SerialSymDenseMatrix &A, const Epetra_SerialDenseMatrix &B,
double ScalarThis)

Matrix-Matrix multiplication with a symmetric matrix A.

If SideA = 'L', compute this = ScalarThis* this + ScalarAB*A*B. If
SideA = 'R', compute this = ScalarThis* this + ScalarAB*B*A.

This function performs a variety of matrix-matrix multiply operations.

Parameters:
-----------

In:  SideA - Specifies order of A relative to B.

In:  ScalarAB - Scalar to multiply with A*B.

In:  A - Symmetric Dense Matrix, either upper or lower triangle will
be used depending on value of A.Upper().

In:  B - Dense Matrix.

In:  ScalarThis - Scalar to multiply with this.

Integer error code, set to 0 if successful. 

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Multiply (   self,
  args 
)

Multiply(self, char TransA, char TransB, double ScalarAB, Epetra_SerialDenseMatrix A, 
    Epetra_SerialDenseMatrix B, 
    double ScalarThis) -> int
Multiply(self, bool transA, Epetra_SerialDenseMatrix x, Epetra_SerialDenseMatrix y) -> int
Multiply(self, char SideA, double ScalarAB, SerialSymDenseMatrix A, 
    Epetra_SerialDenseMatrix B, double ScalarThis) -> int

int
Epetra_SerialDenseMatrix::Multiply(char SideA, double ScalarAB, const
Epetra_SerialSymDenseMatrix &A, const Epetra_SerialDenseMatrix &B,
double ScalarThis)

Matrix-Matrix multiplication with a symmetric matrix A.

If SideA = 'L', compute this = ScalarThis* this + ScalarAB*A*B. If
SideA = 'R', compute this = ScalarThis* this + ScalarAB*B*A.

This function performs a variety of matrix-matrix multiply operations.

Parameters:
-----------

In:  SideA - Specifies order of A relative to B.

In:  ScalarAB - Scalar to multiply with A*B.

In:  A - Symmetric Dense Matrix, either upper or lower triangle will
be used depending on value of A.Upper().

In:  B - Dense Matrix.

In:  ScalarThis - Scalar to multiply with this.

Integer error code, set to 0 if successful. 

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::N (   self  ) 

N(self) -> int

int
Epetra_SerialDenseMatrix::N() const

Returns column dimension of system. 

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::N (   self  ) 

N(self) -> int

int
Epetra_SerialDenseMatrix::N() const

Returns column dimension of system. 

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::NormInf (   self  ) 

NormInf(self) -> double

double
Epetra_SerialDenseMatrix::NormInf() const

Computes the Infinity-Norm of the this matrix. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, PyTrilinos::Epetra::Epetra_SerialDenseVector, PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::Epetra_SerialDenseVector.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::NormInf (   self  ) 

NormInf(self) -> double

double
Epetra_SerialDenseMatrix::NormInf() const

Computes the Infinity-Norm of the this matrix. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, PyTrilinos::Epetra::Epetra_SerialDenseVector, PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::Epetra_SerialDenseVector.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::NormOne (   self  ) 

NormOne(self) -> double

double
Epetra_SerialDenseMatrix::NormOne() const

Computes the 1-Norm of the this matrix.

Integer error code, set to 0 if successful. 

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::SerialSymDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::NormOne (   self  ) 

NormOne(self) -> double

double
Epetra_SerialDenseMatrix::NormOne() const

Computes the 1-Norm of the this matrix.

Integer error code, set to 0 if successful. 

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::SerialSymDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::OneNorm (   self  ) 

OneNorm(self) -> double

virtual
double Epetra_SerialDenseMatrix::OneNorm() const

Computes the 1-Norm of the this matrix (identical to NormOne()
method).

Integer error code, set to 0 if successful. 

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::SerialSymDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::OneNorm (   self  ) 

OneNorm(self) -> double

virtual
double Epetra_SerialDenseMatrix::OneNorm() const

Computes the 1-Norm of the this matrix (identical to NormOne()
method).

Integer error code, set to 0 if successful. 

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::SerialSymDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Random (   self  ) 

Random(self) -> int

int
Epetra_SerialDenseMatrix::Random()

Set matrix values to random numbers.

SerialDenseMatrix uses the random number generator provided by
Epetra_Util. The matrix values will be set to random values on the
interval (-1.0, 1.0).

Integer error code, set to 0 if successful. 

Reimplemented in PyTrilinos::Epetra::Epetra_SerialDenseVector, and PyTrilinos::Epetra::Epetra_SerialDenseVector.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Random (   self  ) 

Random(self) -> int

int
Epetra_SerialDenseMatrix::Random()

Set matrix values to random numbers.

SerialDenseMatrix uses the random number generator provided by
Epetra_Util. The matrix values will be set to random values on the
interval (-1.0, 1.0).

Integer error code, set to 0 if successful. 

Reimplemented in PyTrilinos::Epetra::Epetra_SerialDenseVector, and PyTrilinos::Epetra::Epetra_SerialDenseVector.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Reshape (   self,
  args 
)

Reshape(self, int NumRows, int NumCols) -> int

int
Epetra_SerialDenseMatrix::Reshape(int NumRows, int NumCols)

Reshape a Epetra_SerialDenseMatrix object.

Parameters:
-----------

In:  NumRows - Number of rows in object.

In:  NumCols - Number of columns in object.

Allows user to define the dimensions of a Epetra_SerialDenseMatrix at
any point. This function can be called at any point after
construction. Any values that were previously in this object are
copied into the new shape. If the new shape is smaller than the
original, the upper left portion of the original matrix (the principal
submatrix) is copied to the new matrix.

Integer error code, set to 0 if successful. 

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, PyTrilinos::Epetra::NumPySerialDenseMatrix, PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::NumPySerialDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Reshape (   self,
  args 
)

Reshape(self, int NumRows, int NumCols) -> int

int
Epetra_SerialDenseMatrix::Reshape(int NumRows, int NumCols)

Reshape a Epetra_SerialDenseMatrix object.

Parameters:
-----------

In:  NumRows - Number of rows in object.

In:  NumCols - Number of columns in object.

Allows user to define the dimensions of a Epetra_SerialDenseMatrix at
any point. This function can be called at any point after
construction. Any values that were previously in this object are
copied into the new shape. If the new shape is smaller than the
original, the upper left portion of the original matrix (the principal
submatrix) is copied to the new matrix.

Integer error code, set to 0 if successful. 

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, PyTrilinos::Epetra::NumPySerialDenseMatrix, PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::NumPySerialDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::RowDim (   self  ) 

RowDim(self) -> int

virtual int
Epetra_SerialDenseMatrix::RowDim() const

Returns the row dimension of operator. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::RowDim (   self  ) 

RowDim(self) -> int

virtual int
Epetra_SerialDenseMatrix::RowDim() const

Returns the row dimension of operator. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Scale (   self,
  args 
)

Scale(self, double ScalarA) -> int

int
Epetra_SerialDenseMatrix::Scale(double ScalarA)

Inplace scalar-matrix product A = a A.

Scale a matrix, entry-by-entry using the value ScalarA.

Parameters:
-----------

ScalarA:  (In) Scalar to multiply with A.

Integer error code, set to 0 if successful. 

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::SerialSymDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Scale (   self,
  args 
)

Scale(self, double ScalarA) -> int

int
Epetra_SerialDenseMatrix::Scale(double ScalarA)

Inplace scalar-matrix product A = a A.

Scale a matrix, entry-by-entry using the value ScalarA.

Parameters:
-----------

ScalarA:  (In) Scalar to multiply with A.

Integer error code, set to 0 if successful. 

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::SerialSymDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::SetUseTranspose (   self,
  args 
)

SetUseTranspose(self, bool UseTranspose_in) -> int

virtual int Epetra_SerialDenseMatrix::SetUseTranspose(bool
UseTranspose_in)

If set true, transpose of this operator will be applied.

This flag allows the transpose of the given operator to be used
implicitly. Setting this flag affects only the Apply() and
ApplyInverse() methods. If the implementation of this interface does
not support transpose use, this method should return a value of -1.

Parameters:
-----------

In:  UseTranspose -If true, multiply by the transpose of operator,
otherwise just use operator.

Integer error code, set to 0 if successful. Set to -1 if this
implementation does not support transpose. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::SetUseTranspose (   self,
  args 
)

SetUseTranspose(self, bool UseTranspose_in) -> int

virtual int Epetra_SerialDenseMatrix::SetUseTranspose(bool
UseTranspose_in)

If set true, transpose of this operator will be applied.

This flag allows the transpose of the given operator to be used
implicitly. Setting this flag affects only the Apply() and
ApplyInverse() methods. If the implementation of this interface does
not support transpose use, this method should return a value of -1.

Parameters:
-----------

In:  UseTranspose -If true, multiply by the transpose of operator,
otherwise just use operator.

Integer error code, set to 0 if successful. Set to -1 if this
implementation does not support transpose. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Shape (   self,
  args 
)

Shape(self, int NumRows, int NumCols) -> int

int
Epetra_SerialDenseMatrix::Shape(int NumRows, int NumCols)

Set dimensions of a Epetra_SerialDenseMatrix object; init values to
zero.

Parameters:
-----------

In:  NumRows - Number of rows in object.

In:  NumCols - Number of columns in object.

Allows user to define the dimensions of a Epetra_SerialDenseMatrix at
any point. This function can be called at any point after
construction. Any values that were previously in this object are
destroyed and the resized matrix starts off with all zero values.

Integer error code, set to 0 if successful. 

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, PyTrilinos::Epetra::NumPySerialDenseMatrix, PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::NumPySerialDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::Shape (   self,
  args 
)

Shape(self, int NumRows, int NumCols) -> int

int
Epetra_SerialDenseMatrix::Shape(int NumRows, int NumCols)

Set dimensions of a Epetra_SerialDenseMatrix object; init values to
zero.

Parameters:
-----------

In:  NumRows - Number of rows in object.

In:  NumCols - Number of columns in object.

Allows user to define the dimensions of a Epetra_SerialDenseMatrix at
any point. This function can be called at any point after
construction. Any values that were previously in this object are
destroyed and the resized matrix starts off with all zero values.

Integer error code, set to 0 if successful. 

Reimplemented in PyTrilinos::Epetra::SerialSymDenseMatrix, PyTrilinos::Epetra::NumPySerialDenseMatrix, PyTrilinos::Epetra::SerialSymDenseMatrix, and PyTrilinos::Epetra::NumPySerialDenseMatrix.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::UseTranspose (   self  ) 

UseTranspose(self) -> bool

virtual bool Epetra_SerialDenseMatrix::UseTranspose() const

Returns the current UseTranspose setting. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.

def PyTrilinos::Epetra::Epetra_SerialDenseMatrix::UseTranspose (   self  ) 

UseTranspose(self) -> bool

virtual bool Epetra_SerialDenseMatrix::UseTranspose() const

Returns the current UseTranspose setting. 

Reimplemented from PyTrilinos::Epetra::SerialDenseOperator.


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

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