Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
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 
25  matrixType_(y.matrixType_),
26  m_factored(y.m_factored)
27 {
28 }
29 
31 {
32  if (&y == this) {
33  return *this;
34  }
37  return *this;
38 }
39 
40 }
int matrixType_
Matrix type.
int m_factored
Indicates whether the matrix is factored.
GeneralMatrix(int matType)
Base Constructor.
Generic matrix.
Definition: GeneralMatrix.h:24
Declarations for the class GeneralMatrix which is a virtual base class for matrices handled by solver...
GeneralMatrix & operator=(const GeneralMatrix &right)
Assignment operator.