Skip to content

Commit 10d2c47

Browse files
committed
Auto-generated commit
1 parent 79af8de commit 10d2c47

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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_MIN_VIEW_BUFFER_INDEX_H
20+
#define STDLIB_NDARRAY_BASE_MIN_VIEW_BUFFER_INDEX_H
21+
22+
#include <stdint.h>
23+
24+
/*
25+
* If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler.
26+
*/
27+
#ifdef __cplusplus
28+
extern "C" {
29+
#endif
30+
31+
/**
32+
* Computes the minimum linear index (in bytes) in an underlying data buffer accessible to an array view.
33+
*/
34+
int64_t stdlib_ndarray_min_view_buffer_index( int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset );
35+
36+
#ifdef __cplusplus
37+
}
38+
#endif
39+
40+
#endif // !STDLIB_NDARRAY_BASE_MIN_VIEW_BUFFER_INDEX_H

0 commit comments

Comments
 (0)