Functions
array.c File Reference
#include "array.h"
#include <string.h>
Include dependency graph for array.c:

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 VlArrayvl_array_init (VlArray *self, vl_type type, vl_size numDimensions, vl_size const *dimensions)
 New numeric array.
VL_EXPORT VlArrayvl_array_init_envelope (VlArray *self, void *data, vl_type type, vl_size numDimensions, vl_size const *dimensions)
 New numeric array envelope.
VL_EXPORT VlArrayvl_array_init_matrix (VlArray *self, vl_type type, vl_size numRows, vl_size numColumns)
 New numeric array with matrix shape.
VL_EXPORT VlArrayvl_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 VlArrayvl_array_new (vl_type type, vl_size numDimensions, vl_size const *dimensions)
 New numeric array.
VL_EXPORT VlArrayvl_array_new_envelope (void *data, vl_type type, vl_size numDimensions, vl_size const *dimensions)
 New numeric array envelope.
VL_EXPORT VlArrayvl_array_new_matrix (vl_type type, vl_size numRows, vl_size numColumns)
 New numeric array with matrix shape.
VL_EXPORT VlArrayvl_array_new_matrix_envelope (void *data, vl_type type, vl_size numRows, vl_size numColumns)
 New numeric array envelpe with matrix shape.

Function Documentation

VL_EXPORT void vl_array_dealloc ( VlArray self)

Delete array.

Parameters:
selfarray.

Definition at line 124 of file array.c.

VL_EXPORT void vl_array_delete ( VlArray self)

Delete array.

Parameters:
selfarray.

Definition at line 202 of file array.c.

VL_EXPORT vl_size vl_array_get_num_elements ( VlArray const *  self)

Get number of elements in array.

Parameters:
selfarray.
Returns:
number of elements.

Definition at line 23 of file array.c.

VL_EXPORT VlArray* vl_array_init ( VlArray self,
vl_type  type,
vl_size  numDimensions,
vl_size const *  dimensions 
)

New numeric array.

Parameters:
selfarray to initialize.
typedata type.
numDimensionsnumber of dimensions.
dimensionsdimensions.

The function initializes the specified array and allocates the necessary memory for storage.

Definition at line 51 of file array.c.

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.

Parameters:
selfarray to initialize.
datadata to envelople.
typedata type.
numDimensionsnumber of dimensions.
dimensionsdimensions.

The function initializes the specified array wrapping the specified buffer.

Definition at line 76 of file array.c.

VL_EXPORT VlArray* vl_array_init_matrix ( VlArray self,
vl_type  type,
vl_size  numRows,
vl_size  numColumns 
)

New numeric array with matrix shape.

Parameters:
selfarray to initialize.
typetype.
numRowsnumber of rows.
numColumnsnumber of columns.

Definition at line 97 of file array.c.

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.

Parameters:
selfarray to initialize.
datadata to envelope.
typetype.
numRowsnumber of rows.
numColumnsnumber of columns.

Definition at line 112 of file array.c.

VL_EXPORT VlArray* vl_array_new ( vl_type  type,
vl_size  numDimensions,
vl_size const *  dimensions 
)

New numeric array.

Parameters:
typedata type.
numDimensionsnumber of dimensions.
dimensionsdimensions.

The function creates a new VLArray instance and allocates the necessary memory for storage.

Definition at line 149 of file array.c.

VL_EXPORT VlArray* vl_array_new_envelope ( void data,
vl_type  type,
vl_size  numDimensions,
vl_size const *  dimensions 
)

New numeric array envelope.

Parameters:
datadata to envelople.
typedata type.
numDimensionsnumber of dimensions.
dimensionsdimensions.

Definition at line 176 of file array.c.

VL_EXPORT VlArray* vl_array_new_matrix ( vl_type  type,
vl_size  numRows,
vl_size  numColumns 
)

New numeric array with matrix shape.

Parameters:
typetype.
numRowsnumber of rows.
numColumnsnumber of columns.

Definition at line 162 of file array.c.

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.

Parameters:
datadata to envelope.
typetype.
numRowsnumber of rows.
numColumnsnumber of columns.

Definition at line 191 of file array.c.



libvlfeat
Author(s): Andrea Vedaldi
autogenerated on Thu Jun 6 2019 20:25:51