wedge (version 1.0-3)

consolidate: Various low-level helper functions

Description

Various low-level helper functions used in Alt() and kform()

Usage

consolidate(S)
kill_trivial_rows(S)
include_perms(S)

Arguments

S

Object of class spray

Details

Low-level helper functions.

  • Function consolidate() takes a spray object, and combines any rows that are identical up to a permutation, respecting the sign of the permutation

  • Function kill_trivial_rows() takes a spray object and deletes any rows with a repeated entry (which have \(k\)-forms identically zero)

  • Function include_perms() replaces each row of a spray object with all its permutations, respecting the sign of the permutation

See Also

ktensor,kform

Examples

Run this code
# NOT RUN {
S <- spray(matrix(c(1,1,2,2,1,3,3,1,3,5),ncol=2,byrow=TRUE),1:5)
kill_trivial_rows(S)
consolidate(S)

# }
# NOT RUN {
include_perms(S)
# }
# NOT RUN {
 #  This will fail because of the repeated rows
include_perms(kill_trivial_rows(S)) # This should work

# }

Run the code above in your browser using DataCamp Workspace