Matrix Class Reference

#include <matrix.h>

List of all members.

Public Member Functions

 Matrix (unsigned m, unsigned n)
 Matrix ()
 ~Matrix ()
void fill (double value)
void fill_row (unsigned row, double value)
void copyColumn (VecDouble &vc, unsigned col)

Detailed Description

Definition at line 9 of file matrix.h.


Constructor & Destructor Documentation

Matrix::Matrix ( unsigned  m,
unsigned  n 
) [inline]

Definition at line 19 of file matrix.h.

00020    :dealii::FullMatrix<double>(m,n){}

Matrix::Matrix (  )  [inline]

Definition at line 21 of file matrix.h.

00021 {}

Matrix::~Matrix (  )  [inline]

Definition at line 23 of file matrix.h.

00023 {}


Member Function Documentation

void Matrix::copyColumn ( VecDouble vc,
unsigned  col 
)

Definition at line 22 of file matrix.cpp.

00023 {
00024   assert(vc.size() == m());
00025   assert(col < n());
00026   for (unsigned i=0;i<m();i++)
00027   {
00028     vc(i)=operator()(i,col);
00029   }
00030 }

void Matrix::fill ( double  value  ) 

Definition at line 5 of file matrix.cpp.

00006 {
00007   std::fill_n (val, n_elements(), value);
00008 }

void Matrix::fill_row ( unsigned  row,
double  value 
)

Definition at line 11 of file matrix.cpp.

00012 {
00013   assert(row < this->m());
00014 
00015   for (unsigned i=0; i < this->n() ; i++)
00016   {
00017     (*this)(row, i)=value;
00018   }
00019 }


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Sun Apr 8 23:13:17 2012 for CO2INJECTION by  doxygen 1.6.3