The per-axis atom counts and their product – the number of rows a fully dense realisation would have.

product_size(x)

Arguments

x

A ScaleProduct.

Value

A list with axes (named integer, atoms per axis) and total (double, their product).

Examples

product_size(scale_product(a = scale_example(), b = scale_example2()))
#> $axes
#> a b 
#> 7 4 
#> 
#> $total
#> [1] 28
#>