Skip to main content

Auki::Ceres::Ceres

Public Functions

Name
delegate intCostFunction(IntPtr userData, IntPtr parameters, IntPtr residuals, IntPtr jacobians)
delegate voidLossFunction(IntPtr userData, IntPtr squaredNorm, IntPtr output)
voidceres_init()
IntPtrceres_create_huber_loss_function_data(double a)
voidceres_free_stock_loss_function_data(IntPtr lossFunctionData)
voidceres_stock_loss_function(IntPtr userData, double squaredNorm, double[] output)
IntPtrceres_create_problem()
voidceres_free_problem(IntPtr problem)
IntPtrceres_problem_add_residual_block(IntPtr problem, CostFunction costFunction, IntPtr costFunctionData, LossFunction lossFunction, IntPtr lossFunctionData, int numResiduals, int numParameterBlocks, int[] parameterBlockSizes, IntPtr parameters)
voidceres_solve(IntPtr problem)

Public Functions Documentation

function CostFunction

delegate int CostFunction(
IntPtr userData,
IntPtr parameters,
IntPtr residuals,
IntPtr jacobians
)

function LossFunction

delegate void LossFunction(
IntPtr userData,
IntPtr squaredNorm,
IntPtr output
)

function ceres_init

static void ceres_init()

function ceres_create_huber_loss_function_data

static IntPtr ceres_create_huber_loss_function_data(
double a
)

function ceres_free_stock_loss_function_data

static void ceres_free_stock_loss_function_data(
IntPtr lossFunctionData
)

function ceres_stock_loss_function

static void ceres_stock_loss_function(
IntPtr userData,
double squaredNorm,
double[] output
)

function ceres_create_problem

static IntPtr ceres_create_problem()

function ceres_free_problem

static void ceres_free_problem(
IntPtr problem
)

function ceres_problem_add_residual_block

static IntPtr ceres_problem_add_residual_block(
IntPtr problem,
CostFunction costFunction,
IntPtr costFunctionData,
LossFunction lossFunction,
IntPtr lossFunctionData,
int numResiduals,
int numParameterBlocks,
int[] parameterBlockSizes,
IntPtr parameters
)

function ceres_solve

static void ceres_solve(
IntPtr problem
)