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

feat: add Kronecker product #261

Merged
merged 4 commits into from
Jan 25, 2024
Merged

Conversation

Soptq
Copy link
Contributor

@Soptq Soptq commented Jan 24, 2024

This PR adds Kronecker product.

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: N/A

What is the new behavior?

  • calculating Kronecker product of two lists.
  • all tests are passed.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@Soptq Soptq requested a review from 0xLucqs as a code owner January 24, 2024 15:18
src/linalg/src/kron.cairo Outdated Show resolved Hide resolved
src/linalg/src/kron.cairo Outdated Show resolved Hide resolved
@0xLucqs 0xLucqs merged commit f481e8a into keep-starknet-strange:main Jan 25, 2024
3 checks passed
0xLucqs added a commit that referenced this pull request Jan 25, 2024
@0xLucqs
Copy link
Collaborator

0xLucqs commented Jan 25, 2024

Reverted merged too fast

if xs.len() != ys.len() {
return Result::Err(KronError::UnequalLength);
}
assert(xs.len() == ys.len(), 'Arrays must have the same len');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assert is useless

@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants