Package gov.nih.mipav.model.algorithms
Class CeresSolver.Program
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolver.Program
-
- Enclosing class:
- CeresSolver
class CeresSolver.Program extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector<CeresSolver.ParameterBlock>
parameter_blocks_
private java.util.Vector<CeresSolver.ResidualBlock>
residual_blocks_
-
Constructor Summary
Constructors Constructor Description Program()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
CopyParameterBlockStateToUserState()
CeresSolver.TripletSparseMatrix
CreateJacobianBlockSparsityTranspose()
CeresSolver.Program
CreateReducedProgram(java.util.Vector<double[]> removed_parameter_blocks, double[] fixed_cost, java.lang.String[] error)
boolean
IsBoundsConstrained()
boolean
IsFeasible(java.lang.String[] message)
boolean
IsParameterBlockSetIndependent(java.util.Set<double[]> independent_set)
int
MaxDerivativesPerResidualBlock()
int
MaxParametersPerResidualBlock()
int
MaxResidualsPerResidualBlock()
int
MaxScratchDoublesNeededForEvaluate()
java.util.Vector<CeresSolver.ParameterBlock>
mutable_parameter_blocks()
java.util.Vector<CeresSolver.ResidualBlock>
mutable_residual_blocks()
int
NumEffectiveParameters()
int
NumParameterBlocks()
int
NumParameters()
int
NumResidualBlocks()
int
NumResiduals()
java.util.Vector<CeresSolver.ParameterBlock>
parameter_blocks()
boolean
ParameterBlocksAreFinite(java.lang.String[] message)
void
ParameterBlocksToStateVector(double[] state)
void
ParameterBlocksToStateVector(java.util.Vector<java.lang.Double> state)
private boolean
Plus(java.util.Vector<java.lang.Double> state, java.util.Vector<java.lang.Double> delta, java.util.Vector<java.lang.Double> state_plus_delta)
boolean
RemoveFixedBlocks(java.util.Vector<double[]> removed_parameter_blocks, double[] fixed_cost, java.lang.String[] error)
java.util.Vector<CeresSolver.ResidualBlock>
residual_blocks()
boolean
SetParameterBlockStatePtrsToUserStatePtrs()
void
SetParameterOffsetsAndIndex()
void
setResidualBlocks(java.util.Vector<CeresSolver.ResidualBlock> rb)
boolean
StateVectorToParameterBlocks(double[] state)
boolean
StateVectorToParameterBlocks(java.util.Vector<java.lang.Double> state)
-
-
-
Field Detail
-
parameter_blocks_
private java.util.Vector<CeresSolver.ParameterBlock> parameter_blocks_
-
residual_blocks_
private java.util.Vector<CeresSolver.ResidualBlock> residual_blocks_
-
-
Method Detail
-
NumResidualBlocks
public int NumResidualBlocks()
-
NumParameterBlocks
public int NumParameterBlocks()
-
NumResiduals
public int NumResiduals()
-
NumParameters
public int NumParameters()
-
NumEffectiveParameters
public int NumEffectiveParameters()
-
SetParameterBlockStatePtrsToUserStatePtrs
public boolean SetParameterBlockStatePtrsToUserStatePtrs()
-
parameter_blocks
public java.util.Vector<CeresSolver.ParameterBlock> parameter_blocks()
-
mutable_parameter_blocks
public java.util.Vector<CeresSolver.ParameterBlock> mutable_parameter_blocks()
-
residual_blocks
public java.util.Vector<CeresSolver.ResidualBlock> residual_blocks()
-
setResidualBlocks
public void setResidualBlocks(java.util.Vector<CeresSolver.ResidualBlock> rb)
-
ParameterBlocksAreFinite
public boolean ParameterBlocksAreFinite(java.lang.String[] message)
-
IsFeasible
public boolean IsFeasible(java.lang.String[] message)
-
IsBoundsConstrained
public boolean IsBoundsConstrained()
-
CreateReducedProgram
public CeresSolver.Program CreateReducedProgram(java.util.Vector<double[]> removed_parameter_blocks, double[] fixed_cost, java.lang.String[] error)
-
RemoveFixedBlocks
public boolean RemoveFixedBlocks(java.util.Vector<double[]> removed_parameter_blocks, double[] fixed_cost, java.lang.String[] error)
-
MaxScratchDoublesNeededForEvaluate
public int MaxScratchDoublesNeededForEvaluate()
-
SetParameterOffsetsAndIndex
public void SetParameterOffsetsAndIndex()
-
ParameterBlocksToStateVector
public void ParameterBlocksToStateVector(java.util.Vector<java.lang.Double> state)
-
ParameterBlocksToStateVector
public void ParameterBlocksToStateVector(double[] state)
-
MaxParametersPerResidualBlock
public int MaxParametersPerResidualBlock()
-
MaxResidualsPerResidualBlock
public int MaxResidualsPerResidualBlock()
-
MaxDerivativesPerResidualBlock
public int MaxDerivativesPerResidualBlock()
-
IsParameterBlockSetIndependent
public boolean IsParameterBlockSetIndependent(java.util.Set<double[]> independent_set)
-
mutable_residual_blocks
public java.util.Vector<CeresSolver.ResidualBlock> mutable_residual_blocks()
-
Plus
private boolean Plus(java.util.Vector<java.lang.Double> state, java.util.Vector<java.lang.Double> delta, java.util.Vector<java.lang.Double> state_plus_delta)
-
StateVectorToParameterBlocks
public boolean StateVectorToParameterBlocks(java.util.Vector<java.lang.Double> state)
-
StateVectorToParameterBlocks
public boolean StateVectorToParameterBlocks(double[] state)
-
CopyParameterBlockStateToUserState
public void CopyParameterBlockStateToUserState()
-
CreateJacobianBlockSparsityTranspose
public CeresSolver.TripletSparseMatrix CreateJacobianBlockSparsityTranspose()
-
-