Skip to content

Multiple vectors #260

Open
Open
@aosterthun

Description

@aosterthun

Hi,

I would like to add an option to my application that allows repeated input of vectors.

I tried this:

("test", "vector input", cxxopts::value<std::vector<std::vector<float>>>()) 
const std::vector<std::vector<float>> tests = result["test"].as<std::vector<std::vector<float>>>();

when I call the application as follows:

./app --test=10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0 --test=10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0 --test=10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0

tests contains 30 entries with each entry being a vector of size one. I would expect 3 entries with each being a vector of size 10.

Is there a way to do that right now or is this not supported.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions