Woolz Image Processing
Version 1.7.5
|
A general purpose 1D vector (extensible array). More...
Functions | |
AlcVector * | AlcVectorNew (size_t elmCnt, size_t elmSz, size_t blkSz, AlcErrno *dstErr) |
Creates a new 1D vector (extensible array) with the required element size and initial number of elements. Vector elements are initialised by setting all bytes to zero. More... | |
AlcErrno | AlcVectorFree (AlcVector *vec) |
Free's the given vector. More... | |
AlcErrno | AlcVectorExtend (AlcVector *vec, size_t elmCnt) |
Extend the vector for at least the given number of elements. More... | |
void * | AlcVectorItemGet (AlcVector *vec, size_t idx) |
Gets a pointer to the vector item with the given index. More... | |
void * | AlcVectorExtendAndGet (AlcVector *vec, size_t idx) |
Extends the vector and gets the vector item with the given index. More... | |
size_t | AlcVectorCount (AlcVector *vec) |
Gets the number of elements that the vector can hold before it needs to be extended. More... | |
void | AlcVectorSetArray1D (AlcVector *vec, size_t fIdx, size_t lIdx, void *aM) |
Copies elements from the vector into a 1 dimensional array. More... | |
void * | AlcVectorToArray1D (AlcVector *vec, size_t fIdx, size_t lIdx, AlcErrno *dstErr) |
Creates a 1 dimensional array which contains a copy of the vectors elements. More... | |
void ** | AlcVectorToArray2D (AlcVector *vec, size_t nR, size_t nC, AlcErrno *dstErr) |
Creates a 2 dimensional array which contains a copy of the vectors elements. More... | |
AlcVector * | AlcVecReadDouble1Asci (FILE *fP, const char *fSep, size_t recMax, size_t *dstNV, AlcErrno *dstErr) |
Reads a 1D double array from the given numeric ASCI file. Each value should be on a seperate line. More... | |
AlcVector * | AlcVecReadDouble2Asci (FILE *fP, const char *fSep, size_t recMax, size_t *dstNR, size_t *dstNC, AlcErrno *dstErr) |
Reads a 2D double array from the given numeric ASCI file into an extensible vector. The number of fields per record must be the same for all records. More... | |
A general purpose 1D vector (extensible array).
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.