Skip to content

Conversation

markovamaria
Copy link

Related-to issue #104

svs::data::SimpleData<float, svs::Dynamic>(50, 20); // Different size, same dims
CATCH_REQUIRE(data1.element_size() == data2.element_size());
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test looks good. Maybe we can add a similar test for SQDataset here
Also would be great to add a few more supported datatypes to ensure there is not discrepancy.

Comment on lines +104 to +105
auto data2 =
svs::data::SimpleData<float, svs::Dynamic>(50, 20); // Different size, same dims
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
auto data2 =
svs::data::SimpleData<float, svs::Dynamic>(50, 20); // Different size, same dims
// Different size, same dims
auto data2 =
svs::data::SimpleData<float, svs::Dynamic>(50, 20);

/// Return the number of dimensions for each entry in the dataset.
size_t dimensions() const { return getsize<1>(data_); }

/// Return The size in bytes of one vector: sizeof(element_type) * dimensions()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Return The size in bytes of one vector: sizeof(element_type) * dimensions()
/// Return the size in bytes of one vector: sizeof(element_type) * dimensions()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants