A class to represent the sum of two matrices with optional scaling. More...
#include <usermatrix.h>
Public Member Functions | |
SumMatrix (Pointer< const UserMatrix > A_, Pointer< const UserMatrix > B_=NULL, double a_=1., double b_=1.) | |
Constructor for two matrices and optional multipliers. | |
SumMatrix (Pointer< UserMatrix > A_, Pointer< UserMatrix > B_=NULL, double a_=1., double b_=1.) | |
SumMatrix (UserMatrix *A_, UserMatrix *B_=NULL, double a_=1., double b_=1.) | |
void | MultV (dvector &y, const dvector &x) const |
void | MultV (UserVector< double > &y, const UserVector< double > &x) const |
Multiplies with a UserVector<double>. | |
virtual void | MultV (IntervalVector &y, const IntervalVector &x) const |
void | print (ostream &out) const |
Prints out this matrix. | |
Public Attributes | |
Pointer< const UserMatrix > | A |
Pointer< const UserMatrix > | B |
double | a |
double | b |
A class to represent the sum of two matrices with optional scaling.
this == a*A + b*B, where A and B are UserMatrices ( with ((A||B) != NULL) ) and a and b are double's.
Definition at line 472 of file usermatrix.h.
SumMatrix::SumMatrix | ( | Pointer< const UserMatrix > | A_, | |
Pointer< const UserMatrix > | B_ = NULL , |
|||
double | a_ = 1. , |
|||
double | b_ = 1. | |||
) | [inline] |
Constructor for two matrices and optional multipliers.
A_ or B_ needs to be not NULL.
A_ | First matrix. | |
B_ | Second matrix. | |
a_ | First multiplier. | |
b_ | Second multiplier. |
Definition at line 490 of file usermatrix.h.
SumMatrix::SumMatrix | ( | Pointer< UserMatrix > | A_, | |
Pointer< UserMatrix > | B_ = NULL , |
|||
double | a_ = 1. , |
|||
double | b_ = 1. | |||
) | [inline] |
Definition at line 500 of file usermatrix.h.
SumMatrix::SumMatrix | ( | UserMatrix * | A_, | |
UserMatrix * | B_ = NULL , |
|||
double | a_ = 1. , |
|||
double | b_ = 1. | |||
) | [inline] |
Definition at line 510 of file usermatrix.h.
Definition at line 520 of file usermatrix.h.
void SumMatrix::MultV | ( | UserVector< double > & | y, | |
const UserVector< double > & | x | |||
) | const [inline, virtual] |
Multiplies with a UserVector<double>.
Abstract.
y | The UserVector<double> to store the result in: y = *this * x. | |
x | The UserVector<double> to multiply with. |
Implements UserMatrix.
Definition at line 535 of file usermatrix.h.
virtual void SumMatrix::MultV | ( | IntervalVector & | y, | |
const IntervalVector & | x | |||
) | const [inline, virtual] |
Implements IntervalCompliantMatrix.
Definition at line 552 of file usermatrix.h.
void SumMatrix::print | ( | ostream & | out | ) | const [inline, virtual] |
Prints out this matrix.
Generates a DenseMatrix with the values of this matrix and prints this one.
out | The ostream to print to. |
Reimplemented from UserMatrix.
Definition at line 570 of file usermatrix.h.
Pointer<const UserMatrix> SumMatrix::A |
Definition at line 480 of file usermatrix.h.
Pointer<const UserMatrix> SumMatrix::B |
Definition at line 480 of file usermatrix.h.
double SumMatrix::a |
Definition at line 481 of file usermatrix.h.
double SumMatrix::b |
Definition at line 481 of file usermatrix.h.