"docs/source/vscode:/vscode.git/clone" did not exist on "6565d9e33eb6f0a49d9824bff7ccc3f4fa5e4110"
Commit 77f87d3a authored by Po-Yen, Chen's avatar Po-Yen, Chen
Browse files

Add const to the span<> type arguement

parent 4defb148
...@@ -109,9 +109,9 @@ check_err(const std::vector<T>& out, ...@@ -109,9 +109,9 @@ check_err(const std::vector<T>& out,
} }
template <typename T> template <typename T>
typename std::enable_if<std::is_same_v<std::remove_cv_t<T>, half_t>, bool>::type typename std::enable_if<std::is_same_v<T, half_t>, bool>::type
check_err(span<T> out, check_err(span<const T> out,
span<T> ref, span<const T> ref,
const std::string& msg = "Error: Incorrect results!", const std::string& msg = "Error: Incorrect results!",
double rtol = 1e-3, double rtol = 1e-3,
double atol = 1e-3) double atol = 1e-3)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment