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] stack composition #57

Open
Tracked by #58 ...
DrCatman opened this issue Feb 1, 2023 · 2 comments
Open
Tracked by #58 ...

[Impl] stack composition #57

DrCatman opened this issue Feb 1, 2023 · 2 comments
Assignees
Milestone

Comments

@DrCatman
Copy link
Member

DrCatman commented Feb 1, 2023

AC

  • lists of blocks
@DrCatman DrCatman added this to the Compiler milestone Feb 1, 2023
@DrCatman DrCatman changed the title [Impl] deadend block [Impl] parallel composition Feb 1, 2023
@DrCatman DrCatman changed the title [Impl] parallel composition [Impl] parallel composition ("stack"or concatenate as new name tbd) Feb 10, 2023
@mzargham
Copy link
Collaborator

from cadcad.compose import stack

myblock = stack([block1, block2])

asserts

None

expects

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

@mzargham mzargham changed the title [Impl] parallel composition ("stack"or concatenate as new name tbd) [Impl] stack composition Mar 10, 2023
@mzargham
Copy link
Collaborator

annotations

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

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