20 #ifndef __itkSolverBase_hxx 21 #define __itkSolverBase_hxx 31 template <
class TPrecision>
37 template <
class TPrecision >
45 template <
class TPrecision >
50 int N = GetXDimension();
52 if (xInitial.
Size()==0)
64 template <
class TPrecision >
72 template <
class TPrecision >
73 typename LightObject::Pointer
77 typename LightObject::Pointer loPtr = Superclass::InternalClone();
82 itkExceptionMacro(<<
"downcast to type " << this->GetNameOfClass()<<
" failed.");
85 rval->SetDebug(this->GetDebug());
89 template <
class TPrecision>
94 Superclass::PrintSelf(os, indent);
helper functions specifically used in dmritool
void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
virtual void Initialize(const VectorType &xInitial=VectorType())
virtual LightObject::Pointer InternalClone() const ITK_OVERRIDE
#define utlException(cond, expout)
virtual void Solve(const VectorType &xInitial=VectorType())
SmartPointer< Self > Pointer
void PrintUtlVector(const NDArray< T, 1 > &vec, const std::string &str="", const char *separate=" ", std::ostream &os=std::cout, bool showStats=true)
Base class for some optimization solvers using primal-dual updates.