Name
- wvIndexVectorSub - access an element of an index vector
Synopsis
-
#include <wv/matrix.h>
WVdimension wvIndexVectorSub(WVindexVector vector, WVdimensionIndex n);
Description
-
wvIndexVectorSub returns the nth element of vector. The
value can be written to as well as read from.
Example
-
#include <wv/matrix.h>
.
.
.
{
WVindexVector *index;
index = wvNewIndexVector(1);
wvIndexVectorSub(index,0)=0;
while(wvIndexVectorSub(index,0)<10)
{
.
.
.
wvIndexVectorSub(index,0)++;
}
wvDestroyIndexVector(index);
}
See Also
-
wvIndexVectorLen(3),
wvNewIndexVector(3)
|