A summary method for tensors and alternating forms, and a print method for summaries.

# S3 method for class 'kform'
summary(object, ...)
# S3 method for class 'ktensor'
summary(object, ...)
# S3 method for class 'summary.kform'
print(x, ...)
# S3 method for class 'summary.ktensor'
print(x, ...)

Arguments

object,x

Object of class ktensor or kform

...

Further arguments, passed to head()

Details

Summary methods for tensors and alternating forms. Uses spray::summary().

Author

Robin K. S. Hankin

Examples

a <- rform(100)
summary(a)
#> A kform object with 34 terms.  Summary of coefficients: 
#> 
#> a disord object with hash 4980e9a3db7bc1be348d56b5f8fa4354afbf3db5 
#> 
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#> -242.00  -84.00  -36.00  -29.65   44.00  106.00 
#> 
#> 
#> Representative selection of index and coefficients:
#> 
#> An alternating linear map from V^3 to R with V=R^7:
#>             val
#>  2 4 5  =    37
#>  1 5 6  =    65
#>  2 3 5  =    84
#>  1 6 7  =  -190
#>  1 3 6  =   -43
#>  1 3 5  =   -81
options(kform_symbolic_print = TRUE)
summary(a)
#> A kform object with 34 terms.  Summary of coefficients: 
#> 
#> a disord object with hash 4980e9a3db7bc1be348d56b5f8fa4354afbf3db5 
#> 
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#> -242.00  -84.00  -36.00  -29.65   44.00  106.00 
#> 
#> 
#> Representative selection of index and coefficients:
#> 
#> An alternating linear map from V^3 to R with V=R^7:
#>  +37 dy^dNA^dNA +65 dx^dNA^dNA +84 dy^dz^dNA -190 dx^dNA^dNA -43 dx^dz^dNA -81 dx^dz^dNA 
options(kform_symbolic_print = NULL)  # restore default