MLX
Loading...
Searching...
No Matches
mlx
backend
metal
kernels
arange.h
Go to the documentation of this file.
1
// Copyright © 2023-2024 Apple Inc.
2
template
<
typename
T>
3
[[kernel]]
void
arange
(
4
constant
const
T& start,
5
constant
const
T& step,
6
device T* out,
7
uint index [[thread_position_in_grid]]) {
8
out[index] = start + index * step;
9
}
arange
void arange(constant const T &start, constant const T &step, device T *out, uint index)
Definition
arange.h:3
Generated by
1.10.0