mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
68 lines
1.8 KiB
Plaintext
Executable File
68 lines
1.8 KiB
Plaintext
Executable File
-- File: FEmTool_SparseMatrix.cdl
|
|
-- Created: Wed Oct 29 16:53:14 1997
|
|
-- Author: Roman BORISOV
|
|
-- <rbv@velox.nnov.matra-dtv.fr>
|
|
---Copyright: Matra Datavision 1997
|
|
|
|
deferred class SparseMatrix from FEmTool inherits TShared from MMgt
|
|
|
|
---Purpose: Sparse Matrix definition
|
|
|
|
uses
|
|
Vector from math
|
|
|
|
raises
|
|
NotDone from StdFail
|
|
|
|
is
|
|
Init(me: mutable; Value : Real)
|
|
is deferred;
|
|
|
|
ChangeValue(me: mutable; I, J : Integer)
|
|
---C++: return &
|
|
returns Real is deferred;
|
|
|
|
Decompose(me : mutable)
|
|
---Purpose: To make a Factorization of <me>
|
|
returns Boolean
|
|
is deferred;
|
|
|
|
Solve(me; B : Vector; X : in out Vector)
|
|
---Purpose: Direct Solve of AX = B
|
|
raises NotDone from StdFail -- if <me> is not decomposed
|
|
is deferred;
|
|
|
|
Prepare(me : mutable)
|
|
---Purpose: Make Preparation to iterative solve
|
|
returns Boolean
|
|
is deferred;
|
|
|
|
Solve(me; B : Vector;
|
|
Init : Vector;
|
|
X : out Vector;
|
|
Residual : out Vector;
|
|
Tolerance : Real = 1.0e-8;
|
|
NbIterations: Integer = 50)
|
|
---Purpose: Iterative solve of AX = B
|
|
raises NotDone from StdFail -- if <me> is not prepared;
|
|
is deferred;
|
|
|
|
|
|
Multiplied(me; X: Vector; MX : in out Vector)
|
|
---Purpose: returns the product of a SparseMatrix by a vector.
|
|
-- An exception is raised if the dimensions are different
|
|
is deferred;
|
|
|
|
RowNumber(me)
|
|
---Purpose: returns the row range of a matrix.
|
|
returns Integer
|
|
is deferred;
|
|
|
|
|
|
ColNumber(me)
|
|
---Purpose: returns the column range of the matrix.
|
|
returns Integer
|
|
is deferred;
|
|
|
|
end SparseMatrix;
|