Skip to content

Commit e8ada57

Browse files
committed
slightly improved examples
1 parent f1da45f commit e8ada57

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

man/consolidate.Rd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ kform_to_ktensor(S)
1919
\item{S}{Object of class \code{spray}}
2020
}
2121
\details{
22-
Low-level helper functions.
22+
Low-level helper functions, used in \code{Alt()} and \code{kform()}.
2323

2424
\itemize{
2525
\item Function \code{consolidate()} takes a spray object, and
2626
combines any rows that are identical up to a permutation, respecting
27-
the sign of the permutation
27+
the sign of the permutation.
2828
\item Function \code{kill_trivial_rows()} takes a spray object and
2929
deletes any rows with a repeated entry (which have \eqn{k}-forms
3030
identically zero)
@@ -40,10 +40,10 @@ kform_to_ktensor(S)
4040
\seealso{\code{\link{ktensor}},\code{\link{kform}},\code{\link{Alt}}}
4141
\examples{
4242

43-
(S <- spray(matrix(c(1,1,2,2,1,3,3,1,3,5),ncol=2,byrow=TRUE),1:5))
43+
(S <- spray(matrix(c(1,1,2,2,1,3,3,1,3,5),ncol=2,byrow=TRUE),5:1))
4444

45-
kill_trivial_rows(S) # (rows 1 and 3 killed, repeated entries)
46-
consolidate(S) # (merges rows 2 and 4)
47-
include_perms(S) # returns a spray object, not alternating tensor.
45+
kill_trivial_rows(S) # (rows "1 1; 5" and and "2 2; 4" killed - identically zero)
46+
consolidate(S) # (merges rows "1 3; 3" and "3 1; 2")
47+
include_perms(S) # returns a spray object, not an alternating tensor.
4848

4949
}

0 commit comments

Comments
 (0)