Apply a transform to data
Value
A transformed data matrix. For orthogonal/linear groups, returns X For permutation group, returns op
Examples
# Create a simple orthogonal transform
R <- diag(3)
tr <- new_align_transform("O", R, from = 1, to = 2)
X <- matrix(rnorm(12), 4, 3)
X_transformed <- apply_transform(tr, X)