Learn R Programming

XICOR (version 0.4.1)

weave: Take a matrix of two numbers given in their binary expansion one in each of the two rows and return the interleaving of the two numbers

Description

Take a matrix of two numbers given in their binary expansion one in each of the two rows and return the interleaving of the two numbers

Usage

weave(rmat, sgn)

Arguments

rmat

a matrix with two times m rows corresponding to the the expansions of the m numbers to be interleaved.

sgn

is the sign vector associated to the numbers to be weaved