product

package
v0.0.2-0...-db6250e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2020 License: CC0-1.0, CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InclusionMaps

func InclusionMaps(S Interface) ([]objectmap.Interface, error)

InclusionMaps returns the inclusion maps of S.

func ProjectionMaps

func ProjectionMaps(S Interface) ([]objectmap.Interface, error)

ProjectionMaps returns the projection maps of S.

Types

type InclusionMaper

type InclusionMaper interface {
	InclusionMap(i int) (objectmap.Interface, error) // InclusionMap returns the inclusion S_{i+1} -> S_1 x S_2 x ... x S_k into the (i+1)-th factor of the product. This is, the maps are indexed from 0.
}

InclusionMaper is the interface satisfied by the InclusionMap method.

type Interface

type Interface interface {
	Rank() int                                        // Rank returns the number of factors k of the Cartesian product S_1 x S_2 x ... x S_k.
	ProjectionMap(i int) (objectmap.Interface, error) // ProjectionMap returns the projection S_1 x S_2 x ... x S_k -> S_{i+1} onto the (i+1)-th factor of the product. That is, the maps are indexed from 0.
}

Interface is the interface satisfied by a Cartesian product S_1 x S_2 x ... x S_k of object.Parents.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL