/usr/include/InsightToolkit/Numerics/FEM/itkFEMSolution.h is in libinsighttoolkit3-dev 3.20.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkFEMSolution.h
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __itkFEMSolution_h
#define __itkFEMSolution_h
namespace itk {
namespace fem {
/**
* \class Solution
* \brief Provides functions to access the values of the solution vector.
*
* The actual code of these functions as well as storage for
* the data is implemented in LinearSystemWrapper class.
*
* \sa LinearSystemWrapper
*/
class Solution
{
public:
/** Standard "Self" typedef. */
typedef Solution Self;
/** Standard "Superclass" typedef. */
typedef Solution Superclass;
/** Pointer to an object. */
typedef Self* Pointer;
/** Const pointer to an object. */
typedef const Self* ConstPointer;
/** Floating point storage type used within a class */
typedef double Float;
/**
* Returns value of i-th element in a solution vector. This value
* is calculated generalized displacement of the i-th degree of
* freedom in a FEM problem. Note that in general there may be several
* solution vectors. You can select which one do you want by passing
* the second parameter.
*
* \param i element index in solution vector
* \param solutionIndex index of solution vector to get value from
*
* \note If the solution vector doesn't exist (problem was not yet solved),
* or the index i is out of range, the function returns 0.0.
*/
virtual Float GetSolutionValue(unsigned int i, unsigned int solutionIndex = 0) const = 0;
/**
* Virtual destructor should properly destroy the object and clean up any
* memory allocated for matrix and vector storage.
*/
virtual ~Solution() {};
};
}} // end namespace itk::fem
#endif // #ifndef __itkFEMSolution_h
|