René's URL Explorer Experiment


Title: Zip and azip! behavior related to inputted NdProducers · Issue #453 · rust-ndarray/ndarray · GitHub

Open Graph Title: Zip and azip! behavior related to inputted NdProducers · Issue #453 · rust-ndarray/ndarray

X Title: Zip and azip! behavior related to inputted NdProducers · Issue #453 · rust-ndarray/ndarray

Description: Based on trying to help in Issue #452 , I found some interesting behavior regarding either Zip or azip!. I've given examples down below let a = arr3(&[[[ 0, 1, 2], [ 3, 4, 5]], [[ 6, 7, 8], [ 9, 10, 11]]]); let inner0 = a.lanes(Axis(0));...

Open Graph Description: Based on trying to help in Issue #452 , I found some interesting behavior regarding either Zip or azip!. I've given examples down below let a = arr3(&[[[ 0, 1, 2], [ 3, 4, 5]], [[ 6, 7, 8], [ 9, 10...

X Description: Based on trying to help in Issue #452 , I found some interesting behavior regarding either Zip or azip!. I've given examples down below let a = arr3(&[[[ 0, 1, 2], [ 3, 4, 5]], [[ 6, 7, 8],...

Opengraph URL: https://github.com/rust-ndarray/ndarray/issues/453

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Zip and azip! behavior related to inputted NdProducers","articleBody":"Based on trying to help in Issue #452 , I found some interesting behavior regarding either `Zip` or `azip!`. I've given examples down below\r\n\r\n```\r\n    let a = arr3(\u0026[[[ 0,  1,  2],\r\n                [ 3,  4,  5]],\r\n               [[ 6,  7,  8],\r\n                [ 9, 10, 11]]]);\r\n    let inner0 = a.lanes(Axis(0));\r\n\r\n    let trial = arr1(\u0026[0,0,0,0,0,0]);\r\n    let tr_iter = trial.axis_iter(Axis(0));\r\n\r\n    //The below will error out when compiling.\r\n    azip!(ref output (inner0), ref trial (tr_iter) in {println!(\"{:?}, {:?}\",output, trial); });\r\n```\r\nThe compiler returns the following error:\r\n\r\n```\r\nerror[E0271]: type mismatch resolving `\u003cndarray::iter::AxisIter\u003c'_, {integer}, ndarray::Dim\u003c[usize; 0]\u003e\u003e as ndarray::IntoNdProducer\u003e::Dim == ndarray::Dim\u003c[usize; 2]\u003e`\r\n   --\u003e src/main.rs:141:5\r\n    |\r\n141 |     azip!(ref output (inner0), ref trial (tr_iter) in {println!(\"{:?}, {:?}\",output, trial); });\r\n    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an array with a fixed size of 1 elements, found one with 2 elements\r\n    |\r\n    = note: expected type `ndarray::Dim\u003c[usize; 1]\u003e`\r\n               found type `ndarray::Dim\u003c[usize; 2]\u003e`\r\n    = note: this error originates in a macro outside of the current crate\r\n\r\nerror[E0599]: no method named `apply` found for type `ndarray::Zip\u003c(ndarray::iter::Lanes\u003c'_, {integer}, ndarray::Dim\u003c[usize; 2]\u003e\u003e, ndarray::iter::AxisIter\u003c'_, {integer}, ndarray::Dim\u003c[usize; 0]\u003e\u003e), ndarray::Dim\u003c[usize; 2]\u003e\u003e` in the current scope\r\n   --\u003e src/main.rs:141:5\r\n    |\r\n141 |     azip!(ref output (inner0), ref trial (tr_iter) in {println!(\"{:?}, {:?}\",output, trial); });\r\n    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n    |\r\n    = note: this error originates in a macro outside of the current crate\r\n```\r\n\r\n\r\nHowever, if I were to roll what inner0 outputs directly, I can get it to work no problem as seen below:\r\n\r\n\r\n```\r\n    let trial = arr1(\u0026[0,0,0,0,0,0]);\r\n    let tr_iter = trial.axis_iter(Axis(0));\r\n\r\n    let b = arr2(\u0026[[0,1,2,3,4,5],[6,7,8,9,10,11]]);\r\n    let b_iter = b.axis_iter(Axis(1));\r\n    //The compiler is perfectly okay with this code.\r\n    azip!(ref output (b_iter), ref trial (tr_iter) in {println!(\"{:?}, {:?}\",output, trial); });\r\n```\r\n\r\nI feel that either method should work, since we contain the same number of \"items\" to iterate over in each version. So, I was curious if this is simply an error/bug in the code or is there a design choice behind one method failing to compile and the other one working.","author":{"url":"https://github.com/rcarson3","@type":"Person","name":"rcarson3"},"datePublished":"2018-05-17T22:32:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/453/ndarray/issues/453"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c241100d-dd42-94cd-572b-98bcfe0af0fa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBD22:1427E7:490E6BA:5F02259:69750617
html-safe-noncefc2d2399cdaa0a2bd1494f7a7744e932494221e12ded0af3bbc1a208cc9bb44f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDIyOjE0MjdFNzo0OTBFNkJBOjVGMDIyNTk6Njk3NTA2MTciLCJ2aXNpdG9yX2lkIjoiNjQyODEzNjYyNzIyNTU2MDU5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac42d1661ad5eee9f0c7f8468a8f245da60e01309aaf36b0495ede167875dc70e3
hovercard-subject-tagissue:324208875
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rust-ndarray/ndarray/453/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b454a99c717fe442e45b63fa0f8d55bb3dab5ab9ca1b7bcb7245ad010d55dd6d/rust-ndarray/ndarray/issues/453
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b454a99c717fe442e45b63fa0f8d55bb3dab5ab9ca1b7bcb7245ad010d55dd6d/rust-ndarray/ndarray/issues/453
og:image:altBased on trying to help in Issue #452 , I found some interesting behavior regarding either Zip or azip!. I've given examples down below let a = arr3(&[[[ 0, 1, 2], [ 3, 4, 5]], [[ 6, 7, 8], [ 9, 10...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamercarson3
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
go-importgithub.com/rust-ndarray/ndarray git https://github.com/rust-ndarray/ndarray.git
octolytics-dimension-user_id44419403
octolytics-dimension-user_loginrust-ndarray
octolytics-dimension-repository_id22598813
octolytics-dimension-repository_nworust-ndarray/ndarray
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id22598813
octolytics-dimension-repository_network_root_nworust-ndarray/ndarray
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/rust-ndarray/ndarray/issues/453#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Frust-ndarray%2Fndarray%2Fissues%2F453
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Frust-ndarray%2Fndarray%2Fissues%2F453
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=rust-ndarray%2Fndarray
Reloadhttps://patch-diff.githubusercontent.com/rust-ndarray/ndarray/issues/453
Reloadhttps://patch-diff.githubusercontent.com/rust-ndarray/ndarray/issues/453
Reloadhttps://patch-diff.githubusercontent.com/rust-ndarray/ndarray/issues/453
rust-ndarray https://patch-diff.githubusercontent.com/rust-ndarray
ndarrayhttps://patch-diff.githubusercontent.com/rust-ndarray/ndarray
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Frust-ndarray%2Fndarray
Fork 362 https://patch-diff.githubusercontent.com/login?return_to=%2Frust-ndarray%2Fndarray
Star 4.2k https://patch-diff.githubusercontent.com/login?return_to=%2Frust-ndarray%2Fndarray
Code https://patch-diff.githubusercontent.com/rust-ndarray/ndarray
Issues 171 https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/issues
Pull requests 33 https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/pulls
Discussions https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/discussions
Actions https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/actions
Projects 0 https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/projects
Wiki https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/wiki
Security 0 https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/security
Insights https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/pulse
Code https://patch-diff.githubusercontent.com/rust-ndarray/ndarray
Issues https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/issues
Pull requests https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/pulls
Discussions https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/discussions
Actions https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/actions
Projects https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/projects
Wiki https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/wiki
Security https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/security
Insights https://patch-diff.githubusercontent.com/rust-ndarray/ndarray/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/rust-ndarray/ndarray/issues/453
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/rust-ndarray/ndarray/issues/453
Zip and azip! behavior related to inputted NdProducershttps://patch-diff.githubusercontent.com/rust-ndarray/ndarray/issues/453#top
good first issueA good issue to start contributing to ndarray!https://github.com/rust-ndarray/ndarray/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
https://github.com/rcarson3
https://github.com/rcarson3
rcarson3https://github.com/rcarson3
on May 17, 2018https://github.com/rust-ndarray/ndarray/issues/453#issue-324208875
#452https://github.com/rust-ndarray/ndarray/issues/452
good first issueA good issue to start contributing to ndarray!https://github.com/rust-ndarray/ndarray/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.