Go to the documentation of this file.
46 double alpha = 1.0, beta = 0.0;
52 if (
sflag == SPOOLES_SYMMETRIC ) {
54 }
else if (
sflag == SPOOLES_NONSYMMETRIC ) {
63SpoolesSparseMtrx :: times(
double x)
71 double alpha = 1.0, beta = 0.0;
76 if (
sflag == SPOOLES_SYMMETRIC ) {
78 }
else if (
sflag == SPOOLES_NONSYMMETRIC ) {
85 OOFEM_ERROR(
"error code from InpMtx_(non)sym_gmvm %d", result);
97 this->
mtrx = InpMtx_new();
98 InpMtx_init(this->
mtrx, INPMTX_BY_ROWS,
type, nent, neq);
108 for (
int i = 1; i <= ndofe; i++ ) {
114 for (
int j = 1; j <= ndofe; j++ ) {
124 InpMtx_inputRealEntry( this->
mtrx, ac1 - 1, ac2 - 1, mat.
at(i, j) );
137 for (
int i = 1; i <= dim1; i++ ) {
140 for (
int j = 1; j <= dim2; j++ ) {
143 InpMtx_inputRealEntry( this->
mtrx, ii - 1, jj - 1, mat.
at(i, j) );
155SpoolesSparseMtrx :: zero()
157 InpMtx_clearData(this->
mtrx);
161SpoolesSparseMtrx :: at(
int i,
int j)
168SpoolesSparseMtrx :: at(
int i,
int j)
const
175SpoolesSparseMtrx :: printStatistics()
const
177 InpMtx_writeStats(this->
mtrx, stdout);
181SpoolesSparseMtrx :: printYourself()
const
183 InpMtx_writeForHumanEye(this->
mtrx, stdout);
#define REGISTER_SparseMtrx(class, type)
virtual int giveNumberOfDomainEquations(int di, const UnknownNumberingScheme &num)
void zero()
Zeroes all coefficients of receiver.
const double * givePointer() const
int giveNumberOfColumns() const
Returns number of columns of receiver.
int giveNumberOfRows() const
Returns number of rows of receiver.
double at(std::size_t i, std::size_t j) const
int nColumns
Number of columns.
SparseMtrxVersionType version
int giveNumberOfRows() const
Returns number of rows of receiver.
int giveNumberOfColumns() const
Returns number of columns of receiver.
@ SMT_SpoolesMtrx
Spooles sparse mtrx representation.
This page is part of the
OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak
Bořek Patzák
Project e-mail:
oofem@fsv.cvut.cz
Generated at for OOFEM by
doxygen
1.15.0 written by Dimitri van Heesch,
© 1997-2011