#include "array.h"
#include <string.h>
Go to the source code of this file.
Functions |
VL_EXPORT void | vl_array_dealloc (VlArray *self) |
| Delete array.
|
VL_EXPORT void | vl_array_delete (VlArray *self) |
| Delete array.
|
VL_EXPORT vl_size | vl_array_get_num_elements (VlArray const *self) |
| Get number of elements in array.
|
VL_EXPORT VlArray * | vl_array_init (VlArray *self, vl_type type, vl_size numDimensions, vl_size const *dimensions) |
| New numeric array.
|
VL_EXPORT VlArray * | vl_array_init_envelope (VlArray *self, void *data, vl_type type, vl_size numDimensions, vl_size const *dimensions) |
| New numeric array envelope.
|
VL_EXPORT VlArray * | vl_array_init_matrix (VlArray *self, vl_type type, vl_size numRows, vl_size numColumns) |
| New numeric array with matrix shape.
|
VL_EXPORT VlArray * | vl_array_init_matrix_envelope (VlArray *self, void *data, vl_type type, vl_size numRows, vl_size numColumns) |
| New numeric array envelpe with matrix shape.
|
VL_EXPORT VlArray * | vl_array_new (vl_type type, vl_size numDimensions, vl_size const *dimensions) |
| New numeric array.
|
VL_EXPORT VlArray * | vl_array_new_envelope (void *data, vl_type type, vl_size numDimensions, vl_size const *dimensions) |
| New numeric array envelope.
|
VL_EXPORT VlArray * | vl_array_new_matrix (vl_type type, vl_size numRows, vl_size numColumns) |
| New numeric array with matrix shape.
|
VL_EXPORT VlArray * | vl_array_new_matrix_envelope (void *data, vl_type type, vl_size numRows, vl_size numColumns) |
| New numeric array envelpe with matrix shape.
|
Function Documentation
Delete array.
- Parameters:
-
Definition at line 124 of file array.c.
Delete array.
- Parameters:
-
Definition at line 202 of file array.c.
Get number of elements in array.
- Parameters:
-
- Returns:
- number of elements.
Definition at line 23 of file array.c.
New numeric array.
- Parameters:
-
self | array to initialize. |
type | data type. |
numDimensions | number of dimensions. |
dimensions | dimensions. |
The function initializes the specified array and allocates the necessary memory for storage.
Definition at line 51 of file array.c.
New numeric array envelope.
- Parameters:
-
self | array to initialize. |
data | data to envelople. |
type | data type. |
numDimensions | number of dimensions. |
dimensions | dimensions. |
The function initializes the specified array wrapping the specified buffer.
Definition at line 76 of file array.c.
New numeric array with matrix shape.
- Parameters:
-
self | array to initialize. |
type | type. |
numRows | number of rows. |
numColumns | number of columns. |
Definition at line 97 of file array.c.
New numeric array envelpe with matrix shape.
- Parameters:
-
self | array to initialize. |
data | data to envelope. |
type | type. |
numRows | number of rows. |
numColumns | number of columns. |
Definition at line 112 of file array.c.
New numeric array.
- Parameters:
-
type | data type. |
numDimensions | number of dimensions. |
dimensions | dimensions. |
The function creates a new VLArray instance and allocates the necessary memory for storage.
Definition at line 149 of file array.c.
New numeric array envelope.
- Parameters:
-
data | data to envelople. |
type | data type. |
numDimensions | number of dimensions. |
dimensions | dimensions. |
Definition at line 176 of file array.c.
New numeric array with matrix shape.
- Parameters:
-
type | type. |
numRows | number of rows. |
numColumns | number of columns. |
Definition at line 162 of file array.c.
New numeric array envelpe with matrix shape.
- Parameters:
-
data | data to envelope. |
type | type. |
numRows | number of rows. |
numColumns | number of columns. |
Definition at line 191 of file array.c.