SumMatrix Class Reference

A class to represent the sum of two matrices with optional scaling. More...

#include <usermatrix.h>

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

List of all members.

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 UserMatrixA
Pointer< const UserMatrixB
double a
double b

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

void SumMatrix::MultV ( dvector y,
const dvector x 
) const [inline]

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.

Parameters:
y The UserVector<double> to store the result in: y = *this * x.
x The UserVector<double> to multiply with.
See also:
MultV(double*, double*)

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.

Parameters:
out The ostream to print to.
See also:
DenseMatrix::print(ostream&)

Reimplemented from UserMatrix.

Definition at line 570 of file usermatrix.h.


Member Data Documentation

Definition at line 480 of file usermatrix.h.

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.


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

Generated on 10 Mar 2013 for LaGO by  doxygen 1.6.1