MLX
Loading...
Searching...
No Matches
ternary_ops.h
Go to the documentation of this file.
1
// Copyright © 2023-2024 Apple Inc.
2
3
#pragma once
4
5
struct
Select
{
6
template
<
typename
T>
7
T
operator()
(
bool
condition, T x, T y) {
8
return
condition ? x : y;
9
}
10
};
Select
Definition
ternary_ops.h:5
Select::operator()
T operator()(bool condition, T x, T y)
Definition
ternary_ops.h:7
mlx
backend
metal
kernels
ternary_ops.h
Generated by
1.13.2