Package gov.nih.mipav.model.algorithms
Class CeresSolver.ProblemImpl
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolver.ProblemImpl
-
- Enclosing class:
- CeresSolver
class CeresSolver.ProblemImpl extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private CeresSolver.Context
context_impl_
private boolean[]
context_impl_owned_
private java.util.HashMap<CeresSolver.CostFunction,java.lang.Integer>
cost_function_ref_count_
private int
count
private java.util.Vector<CeresSolver.LocalParameterization>
local_parameterizations_to_delete_
private java.util.HashMap<CeresSolver.LossFunction,java.lang.Integer>
loss_function_ref_count_
protected CeresSolver.ProblemOptions
options_
private java.util.HashMap<double[],CeresSolver.ParameterBlock>
parameter_block_map_
private CeresSolver.Program
program_
private java.util.HashSet<CeresSolver.ResidualBlock>
residual_block_set_
private java.util.Vector<double[]>
residual_parameters_
-
Constructor Summary
Constructors Constructor Description ProblemImpl()
ProblemImpl(CeresSolver.ProblemOptions options)
-
Method Summary
-
-
-
Field Detail
-
residual_parameters_
private java.util.Vector<double[]> residual_parameters_
-
program_
private CeresSolver.Program program_
-
parameter_block_map_
private java.util.HashMap<double[],CeresSolver.ParameterBlock> parameter_block_map_
-
options_
protected CeresSolver.ProblemOptions options_
-
residual_block_set_
private java.util.HashSet<CeresSolver.ResidualBlock> residual_block_set_
-
cost_function_ref_count_
private java.util.HashMap<CeresSolver.CostFunction,java.lang.Integer> cost_function_ref_count_
-
loss_function_ref_count_
private java.util.HashMap<CeresSolver.LossFunction,java.lang.Integer> loss_function_ref_count_
-
context_impl_owned_
private boolean[] context_impl_owned_
-
context_impl_
private CeresSolver.Context context_impl_
-
count
private int count
-
local_parameterizations_to_delete_
private java.util.Vector<CeresSolver.LocalParameterization> local_parameterizations_to_delete_
-
-
Constructor Detail
-
ProblemImpl
public ProblemImpl()
-
ProblemImpl
public ProblemImpl(CeresSolver.ProblemOptions options)
-
-
Method Detail
-
InitializeContext
void InitializeContext(CeresSolver.Context context, CeresSolver.Context context_impl, boolean[] context_impl_owned)
-
AddParameterBlock
public void AddParameterBlock(double[] values, int size)
-
AddParameterBlock
public void AddParameterBlock(double[] values, int size, CeresSolver.LocalParameterization local_parameterization)
-
SetParameterBlockConstant
public void SetParameterBlockConstant(double[] values)
-
IsParameterBlockConstant
public boolean IsParameterBlockConstant(double[] values)
-
SetParameterBlockVariable
public void SetParameterBlockVariable(double[] values)
-
SetParameterization
public void SetParameterization(double[] values, CeresSolver.LocalParameterization local_parameterization)
-
GetParameterization
public CeresSolver.LocalParameterization GetParameterization(double[] values)
-
mutable_program
public CeresSolver.Program mutable_program()
-
program
public CeresSolver.Program program()
-
context
public CeresSolver.Context context()
-
AddResidualBlock
public CeresSolver.ResidualBlock AddResidualBlock(CeresSolver.CostFunction cost_function, CeresSolver.LossFunction loss_function, double[] x0)
-
AddResidualBlock
public CeresSolver.ResidualBlock AddResidualBlock(CeresSolver.CostFunction cost_function, CeresSolver.LossFunction loss_function, double[] x0, double[] x1)
-
AddResidualBlock
public CeresSolver.ResidualBlock AddResidualBlock(CeresSolver.CostFunction cost_function, CeresSolver.LossFunction loss_function, double[] x0, double[] x1, double[] x2)
-
AddResidualBlock
public CeresSolver.ResidualBlock AddResidualBlock(CeresSolver.CostFunction cost_function, CeresSolver.LossFunction loss_function, double[] x0, double[] x1, double[] x2, double[] x3)
-
AddResidualBlock
public CeresSolver.ResidualBlock AddResidualBlock(CeresSolver.CostFunction cost_function, CeresSolver.LossFunction loss_function, double[] x0, double[] x1, double[] x2, double[] x3, double[] x4)
-
AddResidualBlock
public CeresSolver.ResidualBlock AddResidualBlock(CeresSolver.CostFunction cost_function, CeresSolver.LossFunction loss_function, double[] x0, double[] x1, double[] x2, double[] x3, double[] x4, double[] x5)
-
AddResidualBlock
public CeresSolver.ResidualBlock AddResidualBlock(CeresSolver.CostFunction cost_function, CeresSolver.LossFunction loss_function, java.util.Vector<double[]> parameter_blocks)
-
InternalAddParameterBlock
CeresSolver.ParameterBlock InternalAddParameterBlock(double[] values, int size)
-
parameter_map
public java.util.HashMap<double[],CeresSolver.ParameterBlock> parameter_map()
-
SetParameterLowerBound
public void SetParameterLowerBound(double[] values, int index, double lower_bound)
-
SetParameterUpperBound
public void SetParameterUpperBound(double[] values, int index, double upper_bound)
-
NumParameterBlocks
public int NumParameterBlocks()
-
NumParameters
public int NumParameters()
-
NumResidualBlocks
public int NumResidualBlocks()
-
NumResiduals
public int NumResiduals()
-
GetCostFunctionForResidualBlock
public CeresSolver.CostFunction GetCostFunctionForResidualBlock(CeresSolver.ResidualBlock residual_block)
-
GetLossFunctionForResidualBlock
public CeresSolver.LossFunction GetLossFunctionForResidualBlock(CeresSolver.ResidualBlock residual_block)
-
RemoveResidualBlock
public void RemoveResidualBlock(CeresSolver.ResidualBlock residual_block)
-
InternalRemoveResidualBlock
public void InternalRemoveResidualBlock(CeresSolver.ResidualBlock residual_block)
-
DeleteBlockInVector
public void DeleteBlockInVector(java.util.Vector<CeresSolver.ResidualBlock> mutable_blocks, CeresSolver.ResidualBlock block_to_remove)
-
DeleteBlock
public void DeleteBlock(CeresSolver.ResidualBlock residual_block)
-
DeleteBlockInVector
public void DeleteBlockInVector(java.util.Vector<CeresSolver.ParameterBlock> mutable_blocks, CeresSolver.ParameterBlock block_to_remove)
-
DeleteBlock
public void DeleteBlock(CeresSolver.ParameterBlock parameter_block)
-
residual_block_set
public java.util.HashSet<CeresSolver.ResidualBlock> residual_block_set()
-
RemoveParameterBlock
public void RemoveParameterBlock(double[] values)
-
ParameterBlockSize
public int ParameterBlockSize(double[] values)
-
ParameterBlockLocalSize
public int ParameterBlockLocalSize(double[] values)
-
GetParameterBlocks
public void GetParameterBlocks(java.util.Vector<double[]> parameter_blocks)
-
HasParameterBlock
public boolean HasParameterBlock(double[] parameter_block)
-
GetResidualBlocks
public void GetResidualBlocks(java.util.Vector<CeresSolver.ResidualBlock> residual_blocks)
-
Evaluate
public boolean Evaluate(CeresSolver.EvaluateOptions evaluate_options, double[] cost, java.util.Vector<java.lang.Double> residuals, java.util.Vector<java.lang.Double> gradient, CeresSolver.CRSMatrix jacobian)
-
-