Skip to content

Commit 5f6005c

Browse files
committed
Reorder functions in alphabetical order
1 parent efb35a1 commit 5f6005c

File tree

2 files changed

+172
-172
lines changed
  • lib/node_modules/@stdlib/ndarray/ctor

2 files changed

+172
-172
lines changed

lib/node_modules/@stdlib/ndarray/ctor/include/stdlib/ndarray/ctor.h

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -42,103 +42,103 @@
4242
struct ndarray * stdlib_ndarray_allocate( enum STDLIB_NDARRAY_DTYPE dtype, uint8_t *data, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset, enum STDLIB_NDARRAY_ORDER order, enum STDLIB_NDARRAY_INDEX_MODE imode, int64_t nsubmodes, enum STDLIB_NDARRAY_INDEX_MODE *submodes );
4343

4444
/**
45-
* Frees an ndarray's allocated memory.
45+
* Returns the size of an ndarray (in bytes).
4646
*/
47-
void stdlib_ndarray_free( struct ndarray *arr );
47+
int64_t stdlib_ndarray_bytelength( const struct ndarray *arr );
4848

4949
/**
5050
* Returns a pointer to an ndarray's underlying byte array.
5151
*/
5252
uint8_t * stdlib_ndarray_data( const struct ndarray *arr );
5353

5454
/**
55-
* Returns the number of ndarray dimensions.
55+
* Returns an ndarray dimension.
5656
*/
57-
int64_t stdlib_ndarray_ndims( const struct ndarray *arr );
57+
int64_t stdlib_ndarray_dimension( const struct ndarray *arr, const int64_t i );
5858

5959
/**
60-
* Returns a pointer to an array containing an ndarray shape (dimensions).
60+
* Disables specified ndarray flags.
6161
*/
62-
int64_t * stdlib_ndarray_shape( const struct ndarray *arr );
62+
int8_t stdlib_ndarray_disable_flags( struct ndarray *arr, const int64_t flags );
6363

6464
/**
65-
* Returns an ndarray dimension.
65+
* Returns an ndarray data type.
6666
*/
67-
int64_t stdlib_ndarray_dimension( const struct ndarray *arr, const int64_t i );
67+
enum STDLIB_NDARRAY_DTYPE stdlib_ndarray_dtype( const struct ndarray *arr );
6868

6969
/**
70-
* Returns a pointer to an array containing ndarray strides (in bytes).
70+
* Enables specified ndarray flags.
7171
*/
72-
int64_t * stdlib_ndarray_strides( const struct ndarray *arr );
72+
int8_t stdlib_ndarray_enable_flags( struct ndarray *arr, const int64_t flags );
7373

7474
/**
75-
* Returns an ndarray stride (in bytes).
75+
* Returns ndarray flags.
7676
*/
77-
int64_t stdlib_ndarray_stride( const struct ndarray *arr, const int64_t i );
77+
int64_t stdlib_ndarray_flags( const struct ndarray *arr );
7878

7979
/**
80-
* Returns an ndarray index offset (in bytes).
80+
* Frees an ndarray's allocated memory.
8181
*/
82-
int64_t stdlib_ndarray_offset( const struct ndarray *arr );
82+
void stdlib_ndarray_free( struct ndarray *arr );
8383

8484
/**
85-
* Returns the order of an ndarray.
85+
* Tests whether an ndarray has specified flags enabled.
8686
*/
87-
enum STDLIB_NDARRAY_ORDER stdlib_ndarray_order( const struct ndarray *arr );
87+
int8_t stdlib_ndarray_has_flags( const struct ndarray *arr, const int64_t flags );
8888

8989
/**
90-
* Returns an ndarray data type.
90+
* Returns the index mode of an ndarray.
9191
*/
92-
enum STDLIB_NDARRAY_DTYPE stdlib_ndarray_dtype( const struct ndarray *arr );
92+
enum STDLIB_NDARRAY_INDEX_MODE stdlib_ndarray_index_mode( const struct ndarray *arr );
9393

9494
/**
95-
* Returns the index mode of an ndarray.
95+
* Returns the number of elements in an ndarray.
9696
*/
97-
enum STDLIB_NDARRAY_INDEX_MODE stdlib_ndarray_index_mode( const struct ndarray *arr );
97+
int64_t stdlib_ndarray_length( const struct ndarray *arr );
9898

9999
/**
100-
* Returns the number of ndarray subscript modes.
100+
* Returns the number of ndarray dimensions.
101101
*/
102-
int64_t stdlib_ndarray_nsubmodes( const struct ndarray *arr );
102+
int64_t stdlib_ndarray_ndims( const struct ndarray *arr );
103103

104104
/**
105-
* Returns ndarray subscript modes.
105+
* Returns an ndarray index offset (in bytes).
106106
*/
107-
enum STDLIB_NDARRAY_INDEX_MODE * stdlib_ndarray_submodes( const struct ndarray *arr );
107+
int64_t stdlib_ndarray_offset( const struct ndarray *arr );
108108

109109
/**
110-
* Returns an ndarray subscript mode.
110+
* Returns the order of an ndarray.
111111
*/
112-
enum STDLIB_NDARRAY_INDEX_MODE stdlib_ndarray_submode( const struct ndarray *arr, const int64_t i );
112+
enum STDLIB_NDARRAY_ORDER stdlib_ndarray_order( const struct ndarray *arr );
113113

114114
/**
115-
* Returns the number of elements in an ndarray.
115+
* Returns the number of ndarray subscript modes.
116116
*/
117-
int64_t stdlib_ndarray_length( const struct ndarray *arr );
117+
int64_t stdlib_ndarray_nsubmodes( const struct ndarray *arr );
118118

119119
/**
120-
* Returns the size of an ndarray (in bytes).
120+
* Returns a pointer to an array containing an ndarray shape (dimensions).
121121
*/
122-
int64_t stdlib_ndarray_bytelength( const struct ndarray *arr );
122+
int64_t * stdlib_ndarray_shape( const struct ndarray *arr );
123123

124124
/**
125-
* Returns ndarray flags.
125+
* Returns an ndarray stride (in bytes).
126126
*/
127-
int64_t stdlib_ndarray_flags( const struct ndarray *arr );
127+
int64_t stdlib_ndarray_stride( const struct ndarray *arr, const int64_t i );
128128

129129
/**
130-
* Tests whether an ndarray has specified flags enabled.
130+
* Returns a pointer to an array containing ndarray strides (in bytes).
131131
*/
132-
int8_t stdlib_ndarray_has_flags( const struct ndarray *arr, const int64_t flags );
132+
int64_t * stdlib_ndarray_strides( const struct ndarray *arr );
133133

134134
/**
135-
* Enables specified ndarray flags.
135+
* Returns ndarray subscript modes.
136136
*/
137-
int8_t stdlib_ndarray_enable_flags( struct ndarray *arr, const int64_t flags );
137+
enum STDLIB_NDARRAY_INDEX_MODE * stdlib_ndarray_submodes( const struct ndarray *arr );
138138

139139
/**
140-
* Disables specified ndarray flags.
140+
* Returns an ndarray subscript mode.
141141
*/
142-
int8_t stdlib_ndarray_disable_flags( struct ndarray *arr, const int64_t flags );
142+
enum STDLIB_NDARRAY_INDEX_MODE stdlib_ndarray_submode( const struct ndarray *arr, const int64_t i );
143143

144144
#endif // !STDLIB_NDARRAY_CTOR_H

0 commit comments

Comments
 (0)