Skip to content

Commit 65b90b1

Browse files
committed
Auto-generated commit
1 parent dc86bcf commit 65b90b1

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2018 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
#ifndef STDLIB_NDARRAY_BASE_ASSERT_IS_SINGLE_SEGMENT_COMPATIBLE_H
20+
#define STDLIB_NDARRAY_BASE_ASSERT_IS_SINGLE_SEGMENT_COMPATIBLE_H
21+
22+
#include "stdlib/ndarray/dtypes.h"
23+
#include <stdint.h>
24+
25+
/*
26+
* If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler.
27+
*/
28+
#ifdef __cplusplus
29+
extern "C" {
30+
#endif
31+
32+
/**
33+
* Determines if an array is compatible with a single memory segment.
34+
*/
35+
int8_t stdlib_ndarray_is_single_segment_compatible( enum STDLIB_NDARRAY_DTYPE dtype, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset );
36+
37+
#ifdef __cplusplus
38+
}
39+
#endif
40+
41+
#endif // !STDLIB_NDARRAY_BASE_ASSERT_IS_SINGLE_SEGMENT_COMPATIBLE_H

0 commit comments

Comments
 (0)