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 dbf1eaa9103818945cf0e5a162f0b62047577344 
#> 
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#> -210.00  -79.25  -37.50  -25.59   40.00  164.00 
#> 
#> 
#> Representative selection of index and coefficients:
#> 
#> An alternating linear map from V^3 to R with V=R^7:
#>            val
#>  1 6 7  =  -77
#>  2 3 6  =   40
#>  1 3 6  =  -43
#>  2 3 5  =   76
#>  2 5 6  =  -36
#>  1 3 5  =  -73
options(kform_symbolic_print = TRUE)
summary(a)
#> A kform object with 34 terms.  Summary of coefficients: 
#> 
#> a disord object with hash dbf1eaa9103818945cf0e5a162f0b62047577344 
#> 
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#> -210.00  -79.25  -37.50  -25.59   40.00  164.00 
#> 
#> 
#> Representative selection of index and coefficients:
#> 
#> An alternating linear map from V^3 to R with V=R^7:
#>  -77 dx^dNA^dNA +40 dy^dz^dNA -43 dx^dz^dNA +76 dy^dz^dNA -36 dy^dNA^dNA -73 dx^dz^dNA 
options(kform_symbolic_print = NULL)  # restore default