Dew MtxVec NET
TVec.GatherSplit Method
Summary
Gather a vector, split to two vectors.

Class
TVec

Declaration
Function GatherSplit(MaskVec, NotMaskVec, Mask: TMtxVec): TVec;

Description

If the elements of a vector have been split with a Mask and the "positive" elements have been stored in the MaskVec and "negative" elements have been stored in the NotMaskVec, this routine will restore the original vector.

The Mask vector stores the mask as Integers in to the memory location occupied by Values array. The memory is typecasted to an array of integers via IValues pointer. Other TVec methods can not be used to perform operations on an array of integers unless explicitly specified.

The length of the MaskVec vector must be equal to the number of ones in the Maks vector. The length of the NotMaskVec vector must be equal to the number of zeroes in the Maks vector.

MaskVec contanies only data where the Mask is 1. NotMask containes only data where the Mask is 0. The pair for this function is FindAndSplit.
 See Also 
FindAndSplit 

Copyright 2008 Dew Research
http://www.dewresearch.com