MLX
 
Loading...
Searching...
No Matches
copy.h
Go to the documentation of this file.
1// Copyright © 2023-2024 Apple Inc.
2
3#pragma once
4
5#include "mlx/array.h"
8
9namespace mlx::core {
10
11void copy(const array& src, array& dst, CopyType ctype);
12void copy_inplace(const array& src, array& dst, CopyType ctype);
13
15 const array& src,
16 array& dst,
17 const Shape& data_shape,
18 const Strides& i_strides,
19 const Strides& o_strides,
20 int64_t i_offset,
21 int64_t o_offset,
22 CopyType ctype);
23
24} // namespace mlx::core
Definition array.h:24
Definition allocator.h:7
void copy(const array &src, array &dst, CopyType ctype)
std::vector< ShapeElem > Shape
Definition array.h:21
std::vector< int64_t > Strides
Definition array.h:22
void copy_inplace(const array &src, array &dst, CopyType ctype)
CopyType
Definition copy.h:9