28 #ifndef _math_scmat_matrix_i_h
29 #define _math_scmat_matrix_i_h
31 #include <math/scmat/matrix.h>
35 #ifdef INLINE_FUNCTIONS
47 SCMatrixdouble::SCMatrixdouble(SCMatrix*a,
int b,
int c):
52 SCMatrixdouble::~SCMatrixdouble()
56 SCMatrixdouble::operator=(
double a)
58 matrix.set_element(i,j,a);
62 SCMatrixdouble::operator=(
const SCMatrixdouble& md)
65 matrix.set_element(i,j,a);
69 SCMatrixdouble::operator double()
const
71 return matrix.get_element(i,j);
74 SCMatrixdouble::val()
const
76 return matrix.get_element(i,j);
83 SymmSCMatrixdouble::SymmSCMatrixdouble(SymmSCMatrix*a,
int b,
int c):
88 SymmSCMatrixdouble::~SymmSCMatrixdouble()
92 SymmSCMatrixdouble::operator=(
double a)
94 matrix.set_element(i,j,a);
98 SymmSCMatrixdouble::operator=(
const SymmSCMatrixdouble& md)
101 matrix.set_element(i,j,a);
105 SymmSCMatrixdouble::operator double()
107 return matrix.get_element(i,j);
110 SymmSCMatrixdouble::val()
const
112 return matrix.get_element(i,j);
119 DiagSCMatrixdouble::DiagSCMatrixdouble(DiagSCMatrix*a,
int b,
int c):
124 DiagSCMatrixdouble::~DiagSCMatrixdouble()
128 DiagSCMatrixdouble::operator=(
double a)
130 matrix.set_element(i,a);
134 DiagSCMatrixdouble::operator=(
const DiagSCMatrixdouble& md)
137 matrix.set_element(i,a);
141 DiagSCMatrixdouble::operator double()
143 return matrix.get_element(i);
146 DiagSCMatrixdouble::val()
const
148 return matrix.get_element(i);
155 SCVectordouble::SCVectordouble(SCVector*a,
int b):
160 SCVectordouble::~SCVectordouble()
164 SCVectordouble::operator=(
double a)
166 vector.set_element(i,a);
170 SCVectordouble::operator=(
const SCVectordouble& vd)
173 vector.set_element(i,a);
177 SCVectordouble::operator double()
179 return vector.get_element(i);
182 SCVectordouble::val()
const
184 return vector.get_element(i);