Skip to content

change all interfaces from double* + size to vector<double> #65

@DarkoVeberic

Description

@DarkoVeberic

using a pair of double* and an int for size is very antiquated and very c-style. there is probably no reason why cmaes intefarces should not use vector. this includes for instance the following:

CMAParameters<>(unsigned int n, const double* const p, const double sigma);

and the minimizer lambda

FitFunc Likelihood = [](const double* const p, const unsigned int n) { ... };

which could be e.g. simply

CMAParameters<>(const vector& p, const double sigma);
FitFunc Likelihood = [](const vector& p) { ... };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions