Cantera
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
numerics
GeneralMatrix.cpp
Go to the documentation of this file.
1
/**
2
* @file GeneralMatrix.cpp
3
*/
4
5
/*
6
* Copyright 2004 Sandia Corporation. Under the terms of Contract
7
* DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government
8
* retains certain rights in this software.
9
* See file License.txt for licensing information.
10
*/
11
12
#include "
cantera/numerics/GeneralMatrix.h
"
13
using namespace
std;
14
15
namespace
Cantera
16
{
17
18
GeneralMatrix::GeneralMatrix(
int
matType) :
19
matrixType_(matType),
20
m_factored(0)
21
{
22
}
23
24
GeneralMatrix::GeneralMatrix
(
const
GeneralMatrix
& y) :
25
matrixType_(y.matrixType_),
26
m_factored(y.m_factored)
27
{
28
}
29
30
GeneralMatrix
&
GeneralMatrix::operator=
(
const
GeneralMatrix
& y)
31
{
32
if
(&y ==
this
) {
33
return
*
this
;
34
}
35
matrixType_
= y.
matrixType_
;
36
m_factored
= y.
m_factored
;
37
return
*
this
;
38
}
39
40
}
Cantera::GeneralMatrix::matrixType_
int matrixType_
Matrix type.
Definition:
GeneralMatrix.h:234
Cantera::GeneralMatrix::m_factored
int m_factored
Indicates whether the matrix is factored.
Definition:
GeneralMatrix.h:239
Cantera::GeneralMatrix::GeneralMatrix
GeneralMatrix(int matType)
Base Constructor.
Definition:
GeneralMatrix.cpp:18
Cantera::GeneralMatrix
Generic matrix.
Definition:
GeneralMatrix.h:24
GeneralMatrix.h
Declarations for the class GeneralMatrix which is a virtual base class for matrices handled by solver...
Cantera::GeneralMatrix::operator=
GeneralMatrix & operator=(const GeneralMatrix &right)
Assignment operator.
Definition:
GeneralMatrix.cpp:30
Generated by
1.8.6