mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-06 08:47:11 +08:00
Redundant keyword 'mutable' removed in CDL files. In IGESConvGeom_GeomBuilder, unused methods MakeXY() and MakeXYZ() removed. Method StepAP214_AutoDesignGroupAssignment::Init() replicating same method of the base class is removed as it causes CDL extraction error after above (seemingly irrelevant) changes.
96 lines
3.1 KiB
Plaintext
96 lines
3.1 KiB
Plaintext
-- Created on: 1997-10-29
|
|
-- Created by: Roman BORISOV
|
|
-- Copyright (c) 1997-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
class ProfileMatrix from FEmTool inherits SparseMatrix from FEmTool
|
|
|
|
---Purpose: Symmetric Sparse ProfileMatrix useful for 1D Finite
|
|
-- Element methods
|
|
|
|
uses
|
|
HArray1OfInteger from TColStd,
|
|
Array1OfInteger from TColStd,
|
|
Array2OfInteger from TColStd,
|
|
HArray1OfReal from TColStd,
|
|
Vector from math
|
|
|
|
raises
|
|
NotDone from StdFail,
|
|
NotImplemented from Standard,
|
|
OutOfRange from Standard
|
|
|
|
is
|
|
Create(FirstIndexes : Array1OfInteger)
|
|
returns ProfileMatrix from FEmTool;
|
|
|
|
Init(me: mutable; Value : Real);
|
|
|
|
ChangeValue(me: mutable; I, J : Integer)
|
|
---C++: return &
|
|
returns Real
|
|
raises OutOfRange;
|
|
|
|
Decompose(me : mutable)
|
|
---Purpose: To make a Factorization of <me>
|
|
returns Boolean;
|
|
|
|
Solve(me; B : Vector; X : in out Vector)
|
|
---Purpose: Direct Solve of AX = B
|
|
raises NotDone from StdFail; -- if <me> is not decomposed
|
|
|
|
Prepare(me : mutable)
|
|
---Purpose: Make Preparation to iterative solve
|
|
returns Boolean
|
|
raises NotImplemented from Standard;
|
|
|
|
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;
|
|
|
|
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
|
|
|
|
RowNumber(me)
|
|
---Purpose: returns the row range of a matrix.
|
|
returns Integer;
|
|
|
|
|
|
ColNumber(me)
|
|
---Purpose: returns the column range of the matrix.
|
|
returns Integer;
|
|
|
|
IsInProfile(me; i, j : Integer)
|
|
returns Boolean;
|
|
|
|
-- for debug
|
|
|
|
OutM(me);
|
|
|
|
OutS(me);
|
|
|
|
fields
|
|
profile : Array2OfInteger; -- Like MPOSIT in Fortran
|
|
ProfileMatrix : HArray1OfReal; -- Like AMATRI in Fortran
|
|
SMatrix : HArray1OfReal; -- Like SMATRI in Fortran
|
|
NextCoeff : HArray1OfInteger; -- Like POSUIV in Fortran
|
|
IsDecomp : Boolean;
|
|
end ProfileMatrix;
|