MinusMatrix Class Reference

Wrapper class to multiply a matrix with -1. More...

#include <usermatrix.h>

Inheritance diagram for MinusMatrix:
Inheritance graph
[legend]
Collaboration diagram for MinusMatrix:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MinusMatrix (Pointer< UserMatrix > A_)
 Constructor for a UserMatrix.
void MultV (UserVector< double > &y, const UserVector< double > &x) const
 Computes the product of this matrix with a dvector.
void MultV (double *y, const double *x) const
 Multiplies the matrix with a double*.
double yAx (const UserVector< double > &y, const UserVector< double > &x) const
 Multiplies from left and from right with UserVector<double>'s.
virtual void MultV (IntervalVector &y, const IntervalVector &x) const
virtual interval< double > yAx (const IntervalVector &y, const IntervalVector &x) const
void print (ostream &out) const
 Prints information about this matrix.

Protected Attributes

Pointer< UserMatrixA
 The matrix to multiply with -1.

Detailed Description

Wrapper class to multiply a matrix with -1.

this == - *A.

Definition at line 391 of file usermatrix.h.


Constructor & Destructor Documentation

MinusMatrix::MinusMatrix ( Pointer< UserMatrix A_  )  [inline]

Constructor for a UserMatrix.

Parameters:
A_ The UserMatrix to wrap.

Definition at line 407 of file usermatrix.h.


Member Function Documentation

void MinusMatrix::MultV ( UserVector< double > &  y,
const UserVector< double > &  x 
) const [inline, virtual]

Computes the product of this matrix with a dvector.

Parameters:
y The dvector to store the result in: y = - A*x.
x The dvector to multiply with the matrix.

Implements UserMatrix.

Definition at line 421 of file usermatrix.h.

void MinusMatrix::MultV ( double *  y,
const double *  x 
) const [inline, virtual]

Multiplies the matrix with a double*.

Parameters:
y The double* to store the result in.
x The double* to multiply with this matrix.
See also:
MultV(dvector&, const dvector&)

Reimplemented from UserMatrix.

Definition at line 431 of file usermatrix.h.

double MinusMatrix::yAx ( const UserVector< double > &  y,
const UserVector< double > &  x 
) const [inline, virtual]

Multiplies from left and from right with UserVector<double>'s.

Parameters:
y The UserVector<double> to multiply with from left.
x The UserVector<double> to multiply with from right.
Returns:
The double value -y*this*x.

Reimplemented from UserMatrix.

Definition at line 441 of file usermatrix.h.

virtual void MinusMatrix::MultV ( IntervalVector y,
const IntervalVector x 
) const [inline, virtual]

Implements IntervalCompliantMatrix.

Definition at line 446 of file usermatrix.h.

virtual interval<double> MinusMatrix::yAx ( const IntervalVector y,
const IntervalVector x 
) const [inline, virtual]

Reimplemented from IntervalCompliantMatrix.

Definition at line 452 of file usermatrix.h.

void MinusMatrix::print ( ostream &  out  )  const [inline, virtual]

Prints information about this matrix.

Prints the wrapped matrix.

Parameters:
out The ostream to print to.

Reimplemented from UserMatrix.

Definition at line 464 of file usermatrix.h.


Member Data Documentation

The matrix to multiply with -1.

Definition at line 401 of file usermatrix.h.


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

Generated on 10 Mar 2013 for LaGO by  doxygen 1.6.1