gpp_geometry_test

Contents:

gpp_geometry_test.hpp

Tests for gpp_geometry.hpp: utilities for performing d-dimensional geometry.

namespace optimal_learning

Macro to allow restrict as a keyword for C++ compilation and CUDA/nvcc compilation. See related entry in gpp_common.hpp for more details.

gpp_geometry_test.cpp

This file contains functions for testing the functions and classes in gpp_geometry.hpp.

namespace optimal_learning

Macro to allow restrict as a keyword for C++ compilation and CUDA/nvcc compilation. See related entry in gpp_common.hpp for more details.

Functions

int ClosedIntervalTests()

Tests that the member functions of ClosedInterval work correctly.

Returns:
number of test failures: 0 if all geometry functions are working properly

int GeometryToolsTests()

Tests the various geometry utilities in gpp_geometry.hpp; e.g., distance from point to plane, projection from point to plane, hypercube/simplex intersection

Returns:
number of test failures: 0 if all geometry functions are working properly