grapes-p-grapes: Group action operator

Description Usage Arguments Value Examples

Description

Applies a permutation s to a vector v.

Usage

1
s %p% v

Arguments

s

A vector representing a permutation.

v

A vector of the same length as s.

Value

A vector of the same length as s and v.

Examples

1
2
3
4
X <- seq(8)
A <- c(0, 0, 0, 0, 1, 1, 1, 1)
rsp(A) %p% X
rp(8) %p% X

gwb/RGroupFormation documentation built on Sept. 13, 2020, 4:41 p.m.