Classes | Defines | Typedefs
array.h File Reference

Array. More...

#include "generic.h"
Include dependency graph for array.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _VlArray
 Numeric array. More...

Defines

#define VL_ARRAY_MAX_NUM_DIMENSIONS   16
 Maximum number of array dimensions.

Typedefs

typedef struct _VlArray VlArray
 Numeric array.

Functions

Get data and parameters
VL_INLINE vl_size vl_array_get_num_dimensions (VlArray const *self)
 Get number of dimensions.
VL_INLINE vl_size const * vl_array_get_dimensions (VlArray const *self)
 Get dimensions.
VL_INLINE voidvl_array_get_data (VlArray const *self)
 Get data.
VL_INLINE vl_type vl_array_get_data_type (VlArray const *self)
 Get type.
VL_EXPORT vl_size vl_array_get_num_elements (VlArray const *self)
 Get number of elements in array.
Constructing and destroying
VL_EXPORT VlArrayvl_array_init (VlArray *self, vl_type type, vl_size numDimension, vl_size const *dimensions)
 New numeric array.
VL_EXPORT VlArrayvl_array_init_envelope (VlArray *self, void *data, vl_type type, vl_size numDimension, 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 numDimension, vl_size const *dimensions)
 New numeric array.
VL_EXPORT VlArrayvl_array_new_envelope (void *data, vl_type type, vl_size numDimension, 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.
VL_EXPORT void vl_array_dealloc (VlArray *self)
 Delete array.
VL_EXPORT void vl_array_delete (VlArray *self)
 Delete array.

Detailed Description

Array.

Array - Definition.

Author:
Andrea Vedaldi

Definition in file array.h.


Define Documentation

#define VL_ARRAY_MAX_NUM_DIMENSIONS   16

Maximum number of array dimensions.

Definition at line 20 of file array.h.


Typedef Documentation

typedef struct _VlArray VlArray

Numeric array.


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_INLINE void* vl_array_get_data ( VlArray const *  self)

Get data.

Parameters:
selfarray.
Returns:
data.

Definition at line 67 of file array.h.

VL_INLINE vl_type vl_array_get_data_type ( VlArray const *  self)

Get type.

Parameters:
selfarray.
Returns:
type.

Definition at line 78 of file array.h.

VL_INLINE vl_size const* vl_array_get_dimensions ( VlArray const *  self)

Get dimensions.

Parameters:
selfarray.
Returns:
dimensions.

Definition at line 56 of file array.h.

VL_INLINE vl_size vl_array_get_num_dimensions ( VlArray const *  self)

Get number of dimensions.

Parameters:
selfarray.
Returns:
number of dimensions.

Definition at line 45 of file array.h.

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