MLX
Loading...
Searching...
No Matches
arange.h
Go to the documentation of this file.
1// Copyright © 2023-2024 Apple Inc.
2template <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}
void arange(constant const T &start, constant const T &step, device T *out, uint index)
Definition arange.h:3