OOFEM 3.0
Loading...
Searching...
No Matches
skylineu.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35#ifndef skylineu_h
36#define skylineu_h
37
38#include "sparsemtrx.h"
39#include "rowcol.h"
40
41#define _IFT_SkylineUnsym_Name "skylineu"
42
43
44namespace oofem {
46#define SkylineUnsym_TINY_PIVOT 1.e-30
47
55{
56protected:
58 std::vector<RowColumn> rowColumns;
61
62public:
68 SkylineUnsym(int n=0);
69 SkylineUnsym(const SkylineUnsym &s);
71 virtual ~SkylineUnsym() {}
72
73 // Overloaded methods:
74 std::unique_ptr<SparseMtrx> clone() const override;
75 void times(const FloatArray &x, FloatArray &answer) const override;
76 void timesT(const FloatArray &x, FloatArray &answer) const override;
77 void times(double x) override;
78 int buildInternalStructure(EngngModel *, int, const UnknownNumberingScheme &s) override;
79 int setInternalStructure(IntArray &a);
80 int assemble(const IntArray &loc, const FloatMatrix &mat) override;
81 int assemble(const IntArray &rloc, const IntArray &cloc, const FloatMatrix &mat) override;
82 bool canBeFactorized() const override { return true; }
83 SparseMtrx *factorized() override;
84 FloatArray *backSubstitutionWith(FloatArray &) const override;
85 void zero() override;
86 double &at(int i, int j) override;
87 double at(int i, int j) const override;
88 void toFloatMatrix(FloatMatrix &answer) const override;
89 void printYourself() const override;
90 void printStatistics() const override;
91 void writeToFile(const char *fname) const override;
92 SparseMtrxType giveType() const override { return SMT_SkylineU; }
93 bool isAsymmetric() const override { return true; }
94 const char *giveClassName() const override { return "SkylineU"; }
95
96protected:
97 void checkSizeTowards(const IntArray &);
98 void checkSizeTowards(const IntArray &rloc, const IntArray &cloc);
99 void growTo(int);
100
101 SkylineUnsym(int n, std::vector<RowColumn> data, bool isFact);
102};
103} // end namespace oofem
104#endif // skylineu_h
std::vector< RowColumn > rowColumns
Row column segments.
Definition skylineu.h:58
SkylineUnsym(int n, std::vector< RowColumn > data, bool isFact)
SparseMtrxType giveType() const override
Sparse matrix type identification.
Definition skylineu.h:92
virtual ~SkylineUnsym()
Destructor.
Definition skylineu.h:71
int isFactorized
Factorization flag.
Definition skylineu.h:60
SkylineUnsym(int n=0)
Definition skylineu.C:60
bool canBeFactorized() const override
Determines, whether receiver can be factorized.
Definition skylineu.h:82
bool isAsymmetric() const override
Returns true if asymmetric.
Definition skylineu.h:93
const char * giveClassName() const override
Definition skylineu.h:94
SparseMtrx(int n=0, int m=0)
Definition sparsemtrx.h:89
FloatArrayF< N > assemble(const FloatArrayF< M > &x, int const (&c)[M])
Assemble components into zero matrix.
FloatMatrixF< N, M > zero()
Constructs a zero matrix (this is the default behavior when constructing a matrix,...
@ SMT_SkylineU
Unsymmetric skyline.
#define OOFEM_EXPORT
Definition oofemcfg.h:7

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