dim.finite_set: Return the dimension of the finite set.

View source: R/finite_set.R

dim.finite_setR Documentation

Return the dimension of the finite set.

Description

Return the dimension of the finite set.

Usage

## S3 method for class 'finite_set'
dim(x)

Arguments

x

A finite set.

Value

Integer; the dimension of the set.

Examples

fs <- finite_set$new(c(1, 3, 5, 7))
dim(fs) # 1

algebraic.dist documentation built on Feb. 27, 2026, 5:06 p.m.