Loading TOC...


   $seq as cntk.variable,
   $condition as cntk.variable,
   $name as String
) as cntk.function


Performs the inverse of gather. The sequence ``seq`` must have as many elements as the number of True values in the sequence ``condition``. It will return a sequence whose length is the same as the ``condition`` sequence with zeroes everywhere except for the locations where ``condition`` evaluates to True in which case it will copy the elements from ``seq`` preserving their order.

$seq The symbolic sequence from which elements will be copied in the output.
$condition The symbolic sequence which denotes the locations where elements should be copied.
$name The name of the function instance in the network.

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.