0024157: Parallelization of assembly part of BO
[occt.git] / src / math / math_EigenValuesSearcher.cdl
CommitLineData
b311480e 1-- Created on: 2005-12-15
2-- Created by: Julia GERASIMOVA
3-- Copyright (c) 2005-2012 OPEN CASCADE SAS
4--
5-- The content of this file is subject to the Open CASCADE Technology Public
6-- License Version 6.5 (the "License"). You may not use the content of this file
7-- except in compliance with the License. Please obtain a copy of the License
8-- at http://www.opencascade.org and read it completely before using this file.
9--
10-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12--
13-- The Original Code and all software distributed under the License is
14-- distributed on an "AS IS" basis, without warranty of any kind, and the
15-- Initial Developer hereby disclaims all such warranties, including without
16-- limitation, any warranties of merchantability, fitness for a particular
17-- purpose or non-infringement. Please see the License for the specific terms
18-- and conditions governing the rights and limitations under the License.
19
7fd59977 20
21class EigenValuesSearcher from math
22 ---Purpose: This class finds eigen values and vectors of
23 -- real symmetric tridiagonal matrix
24
25uses
26
27 Array1OfReal from TColStd,
28 HArray1OfReal from TColStd,
29 HArray2OfReal from TColStd,
30 Vector from math
31
32raises
33
34 NotDone from StdFail
35
36is
37 Create(Diagonal : Array1OfReal from TColStd;
38 Subdiagonal : Array1OfReal from TColStd)
39 returns EigenValuesSearcher
40 raises NotDone; -- if length(Subdiagonal) != length(Diagonal)-1
41
42 IsDone(me)
43 ---Purpose: Returns Standard_True if computation is performed
44 -- successfully.
45 returns Boolean from Standard;
46
47 Dimension(me)
48 ---Purpose: Returns the dimension of matrix
49 returns Integer from Standard;
50
51 EigenValue(me; Index : Integer from Standard)
52 ---Purpose: Returns the Index_th eigen value of matrix
53 -- Index must be in [1, Dimension()]
54 returns Real from Standard;
55
56 EigenVector(me; Index : Integer from Standard)
57 ---Purpose: Returns the Index_th eigen vector of matrix
58 -- Index must be in [1, Dimension()]
59 returns Vector from math;
60
61fields
62
63 myDiagonal : HArray1OfReal from TColStd;
64 mySubdiagonal : HArray1OfReal from TColStd;
65
66 myIsDone : Boolean from Standard;
67 myN : Integer from Standard;
68 myEigenValues : HArray1OfReal from TColStd;
69 myEigenVectors : HArray2OfReal from TColStd;
70
71end EigenValuesSearcher;