DMRITool
v0.1.1-139-g860d86b4
Diffusion MRI Tool
|
#include <itkSolverBase.h>
Base class for some optimization solvers using primal-dual updates.
Definition at line 39 of file itkSolverBase.h.
Public Types | |
typedef utl_shared_ptr< MatrixType > | MatrixPointer |
typedef utl::NDArray< ValueType, 2 > | MatrixType |
typedef SmartPointer< Self > | Pointer |
typedef SolverBase | Self |
typedef Object | Superclass |
typedef utl_shared_ptr< std::vector< ValueType > > | ValueContainerPointer |
typedef std::vector< ValueType > | ValueContainerType |
typedef TPrecision | ValueType |
typedef utl_shared_ptr< VectorType > | VectorPointer |
typedef utl::NDArray< ValueType, 1 > | VectorType |
Public Member Functions | |
virtual void | Clear () |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual void | EndSolve () |
virtual ValueType | EvaluateCostFunction (const VectorType &x=VectorType()) const |
virtual ValueType | EvaluateCostFunction (const MatrixType &x=MatrixType()) const |
virtual VectorType | EvaluateGradientOfCostFunction (const VectorType &x) const |
virtual const char * | GetNameOfClass () const |
virtual const VectorType & | Getx () |
virtual int | GetXDimension () const |
virtual void | Initialize (const VectorType &xInitial=VectorType()) |
virtual void | Solve (const VectorType &xInitial=VectorType()) |
virtual void | Solve (const MatrixType &xInitial=MatrixType()) |
virtual void | VerifyInputs () const |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
virtual LightObject::Pointer | InternalClone () const ITK_OVERRIDE |
void | PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE |
SolverBase () | |
virtual | ~SolverBase () |
Protected Attributes | |
VectorType | m_x |
Private Member Functions | |
void | operator= (const Self &) |
SolverBase (const Self &) | |
typedef utl_shared_ptr<MatrixType> itk::SolverBase< TPrecision >::MatrixPointer |
Definition at line 56 of file itkSolverBase.h.
typedef utl::NDArray<ValueType,2> itk::SolverBase< TPrecision >::MatrixType |
Definition at line 54 of file itkSolverBase.h.
typedef SmartPointer<Self> itk::SolverBase< TPrecision >::Pointer |
Definition at line 45 of file itkSolverBase.h.
typedef SolverBase itk::SolverBase< TPrecision >::Self |
Standard class typedefs.
Definition at line 43 of file itkSolverBase.h.
typedef Object itk::SolverBase< TPrecision >::Superclass |
Definition at line 44 of file itkSolverBase.h.
typedef utl_shared_ptr<std::vector<ValueType> > itk::SolverBase< TPrecision >::ValueContainerPointer |
Definition at line 59 of file itkSolverBase.h.
typedef std::vector<ValueType> itk::SolverBase< TPrecision >::ValueContainerType |
Definition at line 58 of file itkSolverBase.h.
typedef TPrecision itk::SolverBase< TPrecision >::ValueType |
Definition at line 51 of file itkSolverBase.h.
typedef utl_shared_ptr<VectorType> itk::SolverBase< TPrecision >::VectorPointer |
Definition at line 57 of file itkSolverBase.h.
typedef utl::NDArray<ValueType,1> itk::SolverBase< TPrecision >::VectorType |
Definition at line 55 of file itkSolverBase.h.
|
protected |
Definition at line 33 of file itkSolverBase.hxx.
References itk::SolverBase< TPrecision >::Solve().
|
inlineprotectedvirtual |
Definition at line 86 of file itkSolverBase.h.
References ITK_OVERRIDE.
|
private |
|
virtual |
Reimplemented in itk::SpamsWeightedLassoSolver< TPrecision >, itk::IterativeSolverBase< TPrecision >, itk::L1RegularizedLeastSquaresFISTASolver< TPrecision >, and itk::L2RegularizedLeastSquaresSolver< TPrecision >.
Definition at line 67 of file itkSolverBase.hxx.
References itk::SolverBase< TPrecision >::InternalClone().
Referenced by itk::SolverBase< TPrecision >::Initialize().
virtual::itk::LightObject::Pointer itk::SolverBase< TPrecision >::CreateAnother | ( | void | ) | const |
|
inlinevirtual |
Definition at line 67 of file itkSolverBase.h.
|
inlinevirtual |
if x is not set, evaluate the cost function for m_x
Reimplemented in itk::L1RegularizedLeastSquaresFISTASolver< TPrecision >, and itk::L2RegularizedLeastSquaresSolver< TPrecision >.
Definition at line 70 of file itkSolverBase.h.
|
inlinevirtual |
Reimplemented in itk::SpamsWeightedLassoSolver< TPrecision >.
Definition at line 71 of file itkSolverBase.h.
|
inlinevirtual |
if x is not set, evaluate the gradients of the cost function for m_x
Definition at line 73 of file itkSolverBase.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented in itk::SpamsWeightedLassoSolver< TPrecision >, itk::L1RegularizedLeastSquaresFISTASolver< TPrecision >, itk::L2RegularizedLeastSquaresSolver< TPrecision >, and itk::IterativeSolverBase< TPrecision >.
|
virtual |
|
inlinevirtual |
Reimplemented in itk::SpamsWeightedLassoSolver< TPrecision >, itk::L1RegularizedLeastSquaresFISTASolver< TPrecision >, and itk::L2RegularizedLeastSquaresSolver< TPrecision >.
Definition at line 61 of file itkSolverBase.h.
|
virtual |
Reimplemented in itk::L1RegularizedLeastSquaresFISTASolver< TPrecision >, itk::L2RegularizedLeastSquaresSolver< TPrecision >, and itk::IterativeSolverBase< TPrecision >.
Definition at line 48 of file itkSolverBase.hxx.
References itk::SolverBase< TPrecision >::Clear(), utl::NDArrayBase< T, Dim >::Size(), and utlException.
Referenced by itk::SolverBase< TPrecision >::Solve().
|
protectedvirtual |
Reimplemented in itk::SpamsWeightedLassoSolver< TPrecision >, itk::L1RegularizedLeastSquaresFISTASolver< TPrecision >, itk::L2RegularizedLeastSquaresSolver< TPrecision >, and itk::IterativeSolverBase< TPrecision >.
Definition at line 75 of file itkSolverBase.hxx.
References itk::SolverBase< TPrecision >::PrintSelf().
Referenced by itk::SolverBase< TPrecision >::Clear().
|
static |
Method for creation through the object factory.
|
private |
|
protected |
Definition at line 92 of file itkSolverBase.hxx.
References utl::PrintUtlVector().
Referenced by itk::SolverBase< TPrecision >::InternalClone().
|
virtual |
Reimplemented in itk::SpamsWeightedLassoSolver< TPrecision >, itk::L1RegularizedLeastSquaresFISTASolver< TPrecision >, itk::L2RegularizedLeastSquaresSolver< TPrecision >, and itk::IterativeSolverBase< TPrecision >.
Definition at line 40 of file itkSolverBase.hxx.
References itk::SolverBase< TPrecision >::Initialize().
Referenced by itk::SolverBase< TPrecision >::SolverBase().
|
inlinevirtual |
Definition at line 77 of file itkSolverBase.h.
|
inlinevirtual |
Reimplemented in itk::SpamsWeightedLassoSolver< TPrecision >, itk::L1RegularizedLeastSquaresFISTASolver< TPrecision >, and itk::L2RegularizedLeastSquaresSolver< TPrecision >.
Definition at line 65 of file itkSolverBase.h.
|
protected |
Nx1 vector primal variable
Definition at line 93 of file itkSolverBase.h.