Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Impl] parallel composition #58

Open
4 tasks
Tracked by #60
DrCatman opened this issue Feb 1, 2023 · 1 comment
Open
4 tasks
Tracked by #60

[Impl] parallel composition #58

DrCatman opened this issue Feb 1, 2023 · 1 comment
Assignees
Milestone

Comments

@DrCatman
Copy link
Member

DrCatman commented Feb 1, 2023

requires:

@DrCatman DrCatman converted this from a draft issue Feb 1, 2023
@DrCatman DrCatman added this to the Compiler milestone Feb 1, 2023
@DrCatman DrCatman changed the title [Impl] broadcast block [Impl] hybrid composition Feb 1, 2023
@DrCatman DrCatman changed the title [Impl] hybrid composition [Impl] parallel composition Feb 10, 2023
@mzargham
Copy link
Collaborator

mzargham commented Mar 10, 2023

annotations

def parallel(blocks: List[Block])-> Block:

api

from cadcad.compose import parallel

myblock = parallel([block1, block2])

asserts

block1.domain == block2.domain

expects

myblock.domain ==  block1.domain
myblock.domain ==  block2.domain
myblock.codomain == spaces.product([block1.codomain, block2.codomain]) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants