Skip to contents

Retrieves the dimensions of a fast transform created by fort() (i.e., the number of rows and columns of an equivalent matrix). It returns the same value that one would get from dim(as.matrix()), but much more efficiently.

Usage

# S3 method for FastTransform
dim(x)

Arguments

x

An object of class FastTransform, created using fort().

Value

A vector of length 2 containing the dimensions of the fast transform (i.e., number of rows and number of columns, in this order).

See also

Examples

dim(fort(3, 17)) # should return c(17,3)
#> [1] 17  3
dim(t(fort(3, 17))) # should return c(3,17)
#> Warning: t() converted FastTransform object into a matrix
#> [1]  3 17