Skip to content

reserve_capacity calculate error in sample_core.cpp #29

@shadow150519

Description

@shadow150519

I think you forgot to add static_cast<float> before using ceil

int reserve_capacity = int(ceil((*root_nodes).size() / num_threads)) * neighs;

it should be

int reserve_capacity = int(ceil( static_cast<float>((*root_nodes).size() / num_threads))) * neighs;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions