Halide
test.h File Reference
#include "Halide.h"

Go to the source code of this file.

Namespaces

 Halide
 This file defines the class FunctionDAG, which is our representation of a Halide pipeline, and contains methods to using Halide's bounds tools to query properties of it.
 
 Halide::Internal
 
 Halide::Internal::Autoscheduler
 

Macros

#define user_assert(c)   _halide_internal_assertion(c, Halide::Internal::ErrorReport::User)
 
#define EXPECT_EQ(expected, actual)   expect_eq(__LINE__, expected, actual)
 
#define APPROX_EQ(expected, actual, epsilon)   approx_eq(__LINE__, expected, actual, epsilon)
 
#define EXPECT(expected)   expect(__LINE__, expected)
 

Functions

template<typename A , typename B >
void Halide::Internal::Autoscheduler::expect_eq (int line, const A &expected, const B &actual)
 
template<typename A , typename B >
void Halide::Internal::Autoscheduler::approx_eq (int line, const A &expected, const B &actual, float epsilon)
 
template<typename A >
void Halide::Internal::Autoscheduler::expect (int line, const A &expected)
 

Macro Definition Documentation

◆ user_assert

#define user_assert (   c)    _halide_internal_assertion(c, Halide::Internal::ErrorReport::User)

Definition at line 10 of file test.h.

◆ EXPECT_EQ

#define EXPECT_EQ (   expected,
  actual 
)    expect_eq(__LINE__, expected, actual)

Definition at line 11 of file test.h.

◆ APPROX_EQ

#define APPROX_EQ (   expected,
  actual,
  epsilon 
)    approx_eq(__LINE__, expected, actual, epsilon)

Definition at line 12 of file test.h.

◆ EXPECT

#define EXPECT (   expected)    expect(__LINE__, expected)

Definition at line 13 of file test.h.