Skip to content

Automatic differentiation and L-BFGS implementation in the D Programming Language.

Notifications You must be signed in to change notification settings

lempiji/numeric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numeric

Automatic differentiation and L-BFGS implementation in the D Programming Language.

auto solver = new SimpleSolver!(double, 2);

struct Func
{
    T opCall(T)(in T[] x)
    {
        return x[0] * x[0] + x[1] * x[1];
    }
}

Func f;
solver.setAutoDiffCost(f);

auto x = new double[2];
x[] = 1;
solver.solve(x); //solve by L-BFGS
assert(equals(x, [0.0, 0.0]));

About

Automatic differentiation and L-BFGS implementation in the D Programming Language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages