/usr/include/vl/array.h is in libvlfeat-dev 0.9.20+dfsg0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | /** @file array.h
** @brief Array - Definition
** @author Andrea Vedaldi
**/
/*
Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*/
#ifndef VL_ARRAY_H
#define VL_ARRAY_H
#include "generic.h"
/** @brief Maximum number of array dimensions */
#define VL_ARRAY_MAX_NUM_DIMENSIONS 16
/** @brief Numeric array */
typedef struct _VlArray
{
vl_type type ;
vl_bool isEnvelope ;
vl_bool isSparse ;
vl_size numDimensions ;
vl_size dimensions [VL_ARRAY_MAX_NUM_DIMENSIONS] ;
void * data ;
void * rowPointers ;
void * columnPointers ;
} VlArray ;
/** @name Get data and parameters
** @{ */
/** @brief Get number of dimensions
** @param self array.
** @return number of dimensions.
**/
VL_INLINE vl_size
vl_array_get_num_dimensions (VlArray const * self)
{
return self->numDimensions ;
}
/** @brief Get dimensions
** @param self array.
** @return dimensions.
**/
VL_INLINE vl_size const *
vl_array_get_dimensions (VlArray const * self)
{
return self->dimensions ;
}
/** @brief Get data
** @param self array.
** @return data.
**/
VL_INLINE void *
vl_array_get_data (VlArray const * self)
{
return self->data;
}
/** @brief Get type
** @param self array.
** @return type.
**/
VL_INLINE vl_type
vl_array_get_data_type (VlArray const * self)
{
return self->type ;
}
VL_EXPORT vl_size vl_array_get_num_elements (VlArray const * self) ;
/** @{ */
/** @name Constructing and destroying
** @{ */
VL_EXPORT VlArray * vl_array_init (VlArray * self, vl_type type, vl_size numDimension, vl_size const * dimensions) ;
VL_EXPORT VlArray * vl_array_init_envelope (VlArray *self, void * data, vl_type type, vl_size numDimension, vl_size const * dimensions) ;
VL_EXPORT VlArray * vl_array_init_matrix (VlArray * self, vl_type type, vl_size numRows, vl_size numColumns) ;
VL_EXPORT VlArray * vl_array_init_matrix_envelope (VlArray * self, void * data, vl_type type, vl_size numRows, vl_size numColumns) ;
VL_EXPORT VlArray * vl_array_new (vl_type type, vl_size numDimension, vl_size const * dimensions) ;
VL_EXPORT VlArray * vl_array_new_envelope (void * data, vl_type type, vl_size numDimension, vl_size const * dimensions) ;
VL_EXPORT VlArray * vl_array_new_matrix (vl_type type, vl_size numRows, vl_size numColumns) ;
VL_EXPORT VlArray * vl_array_new_matrix_envelope (void * data, vl_type type, vl_size numRows, vl_size numColumns) ;
VL_EXPORT void vl_array_dealloc (VlArray * self) ;
VL_EXPORT void vl_array_delete (VlArray * self) ;
/** @} */
/* VL_ARRAY_H */
#endif
|