Wrapper class to multiply a matrix with -1. More...
#include <usermatrix.h>
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< UserMatrix > | A |
The matrix to multiply with -1. |
Wrapper class to multiply a matrix with -1.
this == - *A.
Definition at line 391 of file usermatrix.h.
MinusMatrix::MinusMatrix | ( | Pointer< UserMatrix > | A_ | ) | [inline] |
Constructor for a UserMatrix.
A_ | The UserMatrix to wrap. |
Definition at line 407 of file usermatrix.h.
void MinusMatrix::MultV | ( | UserVector< double > & | y, | |
const UserVector< double > & | x | |||
) | const [inline, virtual] |
Computes the product of this matrix with a dvector.
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*.
y | The double* to store the result in. | |
x | The double* to multiply with this matrix. |
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.
y | The UserVector<double> to multiply with from left. | |
x | The UserVector<double> to multiply with from right. |
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.
out | The ostream to print to. |
Reimplemented from UserMatrix.
Definition at line 464 of file usermatrix.h.
Pointer<UserMatrix> MinusMatrix::A [protected] |
The matrix to multiply with -1.
Definition at line 401 of file usermatrix.h.