Learn R Programming

stokes (version 1.0-8)

print.stokes: Print methods for \(k\)-tensors and \(k\)-forms

Description

Print methods for objects with options for printing in matrix form or multivariate polynomial form

Usage

# S3 method for kform
print(x, ...)
# S3 method for ktensor
print(x, ...)

Arguments

x

\(k\)-form or \(k\)-tensor

...

Further arguments (currently ignored)

Value

Returns its argument invisibly.

Details

The print method is designed to tell the user that an object is a tensor or a \(k\)-form. It prints a message to this effect (with special dispensation for zero tensors), then calls the spray print method.

Examples

Run this code
# NOT RUN {
rform()
rtensor()

## spray print options work:
options(polyform = TRUE)
rtensor()


## reset to default 
options(polyform = FALSE)

# }

Run the code above in your browser using DataLab