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 73bf8f9391870392001de5e560e1ef6d421978ba 
#> 
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#> -234.00  -82.75  -36.00  -28.41   40.25  104.00 
#> 
#> 
#> Representative selection of index and coefficients:
#> 
#> An alternating linear map from V^3 to R with V=R^7:
#>             val
#>  3 4 6  =  -123
#>  1 5 6  =   -36
#>  1 6 7  =   -84
#>  4 5 6  =  -112
#>  1 3 6  =   -43
#>  1 3 5  =   -79
options(kform_symbolic_print = TRUE)
summary(a)
#> A kform object with 34 terms.  Summary of coefficients: 
#> 
#> a disord object with hash 73bf8f9391870392001de5e560e1ef6d421978ba 
#> 
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#> -234.00  -82.75  -36.00  -28.41   40.25  104.00 
#> 
#> 
#> Representative selection of index and coefficients:
#> 
#> An alternating linear map from V^3 to R with V=R^7:
#>  -123 dz^dNA^dNA -36 dx^dNA^dNA -84 dx^dNA^dNA -112 dNA^dNA^dNA -43 dx^dz^dNA -79 dx^dz^dNA 
options(kform_symbolic_print = NULL)  # restore default