FEMTIC
InversionGaussNewtonDataSpace.h
Go to the documentation of this file.
1 //-------------------------------------------------------------------------------------------------------
2 // The MIT License (MIT)
3 //
4 // Copyright (c) 2021 Yoshiya Usui
5 //
6 // Permission is hereby granted, free of charge, to any person obtaining a copy
7 // of this software and associated documentation files (the "Software"), to deal
8 // in the Software without restriction, including without limitation the rights
9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 // copies of the Software, and to permit persons to whom the Software is
11 // furnished to do so, subject to the following conditions:
12 //
13 // The above copyright notice and this permission notice shall be included in all
14 // copies or substantial portions of the Software.
15 //
16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 // SOFTWARE.
23 //-------------------------------------------------------------------------------------------------------
24 #ifndef DBLDEF_INVERSION_GN_DATA_SPACE
25 #define DBLDEF_INVERSION_GN_DATA_SPACE
26 
27 #include "Inversion.h"
28 #include "RougheningMatrix.h"
29 
30 // Class of inversion using Gauss-Newton method (data space)
32 
33 public:
34  // Constructer
36 
37  // Constructer
38  explicit InversionGaussNewtonDataSpace( const int nModel, const int nData );
39 
40  // Destructer
42 
43  // Perform inversion
44  virtual void inversionCalculation();
45 
46  // Perform inversion by the new method
48 
49  // Perform inversion by the new method using inverse of [R]T[R] matrix
51 
52  // Read sensitivity matrix
53  void readSensitivityMatrix( const std::string& fileName, int& numData, int& numModel, double*& sensitivityMatrix ) const;
54 
55 private:
56  // Copy constructer
58  std::cerr << "Error : Copy constructer of the class InversionGaussNewtonDataSpace is not implemented." << std::endl;
59  exit(1);
60  }
61 
62  // Copy assignment operator
64  std::cerr << "Error : Assignment operator of the class InversionGaussNewtonDataSpace is not implemented." << std::endl;
65  exit(1);
66  }
67 
68  // Calculate constraining matrix for difference filter
69  void calcConstrainingMatrixForDifferenceFilter( DoubleSparseMatrix& constrainingMatrix ) const;
70 
71 };
72 
73 #endif
Definition: DoubleSparseMatrix.h:29
Definition: InversionGaussNewtonDataSpace.h:31
void readSensitivityMatrix(const std::string &fileName, int &numData, int &numModel, double *&sensitivityMatrix) const
Definition: InversionGaussNewtonDataSpace.cpp:1707
InversionGaussNewtonDataSpace()
Definition: InversionGaussNewtonDataSpace.cpp:40
void inversionCalculationByNewMethodUsingInvRTRMatrix() const
Definition: InversionGaussNewtonDataSpace.cpp:898
virtual ~InversionGaussNewtonDataSpace()
Definition: InversionGaussNewtonDataSpace.cpp:50
InversionGaussNewtonDataSpace & operator=(const InversionGaussNewtonDataSpace &rhs)
Definition: InversionGaussNewtonDataSpace.h:63
virtual void inversionCalculation()
Definition: InversionGaussNewtonDataSpace.cpp:54
InversionGaussNewtonDataSpace(const InversionGaussNewtonDataSpace &rhs)
Definition: InversionGaussNewtonDataSpace.h:57
void inversionCalculationByNewMethod() const
Definition: InversionGaussNewtonDataSpace.cpp:74
void calcConstrainingMatrixForDifferenceFilter(DoubleSparseMatrix &constrainingMatrix) const
Definition: InversionGaussNewtonDataSpace.cpp:1726
Definition: Inversion.h:34