MLX
 
Loading...
Searching...
No Matches
slicing.h
Go to the documentation of this file.
1// Copyright © 2024 Apple Inc.
2
3#pragma once
4
5#include "mlx/array.h"
6
7namespace mlx::core {
8
9std::tuple<int64_t, Strides> prepare_slice(
10 const array& in,
11 const Shape& start_indices,
12 const Shape& strides);
13
14void slice(
15 const array& in,
16 array& out,
17 const Shape& start_indices,
18 const Shape& strides);
19
20} // namespace mlx::core
Definition array.h:24
Definition allocator.h:7
void slice(const array &in, array &out, const Shape &start_indices, const Shape &strides)
std::vector< ShapeElem > Shape
Definition array.h:21
std::tuple< int64_t, Strides > prepare_slice(const array &in, const Shape &start_indices, const Shape &strides)