René's URL Explorer Experiment


Title: Copy function · Issue #1 · codebndr/MatrixMath · GitHub

Open Graph Title: Copy function · Issue #1 · codebndr/MatrixMath

X Title: Copy function · Issue #1 · codebndr/MatrixMath

Description: Hi @tzikis and @eecharlie I've been playing around with the MatrixMath library, and I have a very specific issue with the Copy function, which is giving me a huge headache: Here is a minimal example: float X[10][40][3]; //an array of 10 ...

Open Graph Description: Hi @tzikis and @eecharlie I've been playing around with the MatrixMath library, and I have a very specific issue with the Copy function, which is giving me a huge headache: Here is a minimal exampl...

X Description: Hi @tzikis and @eecharlie I've been playing around with the MatrixMath library, and I have a very specific issue with the Copy function, which is giving me a huge headache: Here is a minimal ex...

Opengraph URL: https://github.com/codebndr/MatrixMath/issues/1

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Copy function","articleBody":"Hi @tzikis and @eecharlie\r\n\r\nI've been playing around with the MatrixMath library, and I have a very specific issue with the **Copy** function, which is giving me a huge headache:\r\n\r\nHere is a minimal example:\r\n\r\n ```\r\n   float X[10][40][3];    //an array of 10 matrices (40x3)\r\n    \r\n    //just fill it with 5's:\r\n    for(int i=0; i\u003c10; i++){\r\n        for (int j=0; j\u003c40; j++){\r\n            for (int k=0; k\u003c3; k++){\r\n                X[i][j][k] = 5.0;\r\n            }\r\n        }\r\n    }    \r\n\r\n    float Q [10][40][3];    \r\n    \r\n   //now, I just want to copy the 1st matrix of X (located in X[0]) to Q[0]:\r\n    Matrix.Copy( (float*)X[0], 3, 40, (float*)Q[0] );\r\n    Serial.println(\"Copy done\");\r\n```\r\n\r\nWhile the compiler doesn't complain about this code, the program segfaults after the copy operation... \r\nCan you perhaps let me know why, and how can I solve this?\r\n\r\nI also noticed that the Copy function receives n (cols) first and m (rows) after, as opposed to all the other functions in the library. Do you know the reason for this design choice? I would recommend to change the order for easiness of use.\r\n\r\nThanks!","author":{"url":"https://github.com/davidbsp","@type":"Person","name":"davidbsp"},"datePublished":"2018-01-11T14:00:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1/MatrixMath/issues/1"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:17928903-53a1-3933-829c-484514b631cf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id83E8:261CBF:8FF33C:C150B5:69812C3A
html-safe-nonce9241e94e17ae842b19e59364098dda2c11a2ae14aabb9f2fe89f046ef80289af
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0U4OjI2MUNCRjo4RkYzM0M6QzE1MEI1OjY5ODEyQzNBIiwidmlzaXRvcl9pZCI6IjU1MzUxOTQ0MDIxOTQwMDkxNDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac33e1a8db8f5795e05ecdb3ff9ae6112ca666bf66350e4ca746505e29809bcb67
hovercard-subject-tagissue:287795875
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/codebndr/MatrixMath/1/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b2b9c9448e18a2d250ac19424e16890e6686f5d10e82635dce837254ff45f1cf/codebndr/MatrixMath/issues/1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b2b9c9448e18a2d250ac19424e16890e6686f5d10e82635dce837254ff45f1cf/codebndr/MatrixMath/issues/1
og:image:altHi @tzikis and @eecharlie I've been playing around with the MatrixMath library, and I have a very specific issue with the Copy function, which is giving me a huge headache: Here is a minimal exampl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedavidbsp
hostnamegithub.com
expected-hostnamegithub.com
None39fe8101494cbb823c09b619b68c80cd4d05ab7279997038dbe06bb91608abe1
turbo-cache-controlno-preview
go-importgithub.com/codebndr/MatrixMath git https://github.com/codebndr/MatrixMath.git
octolytics-dimension-user_id1754900
octolytics-dimension-user_logincodebndr
octolytics-dimension-repository_id32738751
octolytics-dimension-repository_nwocodebndr/MatrixMath
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id32738751
octolytics-dimension-repository_network_root_nwocodebndr/MatrixMath
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
released5b34a4e4898b066c629879feb4b184bc471d6a7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/codebndr/MatrixMath/issues/1#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodebndr%2FMatrixMath%2Fissues%2F1
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%2Fcodebndr%2FMatrixMath%2Fissues%2F1
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=codebndr%2FMatrixMath
Reloadhttps://patch-diff.githubusercontent.com/codebndr/MatrixMath/issues/1
Reloadhttps://patch-diff.githubusercontent.com/codebndr/MatrixMath/issues/1
Reloadhttps://patch-diff.githubusercontent.com/codebndr/MatrixMath/issues/1
codebndr https://patch-diff.githubusercontent.com/codebndr
MatrixMathhttps://patch-diff.githubusercontent.com/codebndr/MatrixMath
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fcodebndr%2FMatrixMath
Fork 18 https://patch-diff.githubusercontent.com/login?return_to=%2Fcodebndr%2FMatrixMath
Star 12 https://patch-diff.githubusercontent.com/login?return_to=%2Fcodebndr%2FMatrixMath
Code https://patch-diff.githubusercontent.com/codebndr/MatrixMath
Issues 2 https://patch-diff.githubusercontent.com/codebndr/MatrixMath/issues
Pull requests 1 https://patch-diff.githubusercontent.com/codebndr/MatrixMath/pulls
Actions https://patch-diff.githubusercontent.com/codebndr/MatrixMath/actions
Projects 0 https://patch-diff.githubusercontent.com/codebndr/MatrixMath/projects
Wiki https://patch-diff.githubusercontent.com/codebndr/MatrixMath/wiki
Security 0 https://patch-diff.githubusercontent.com/codebndr/MatrixMath/security
Insights https://patch-diff.githubusercontent.com/codebndr/MatrixMath/pulse
Code https://patch-diff.githubusercontent.com/codebndr/MatrixMath
Issues https://patch-diff.githubusercontent.com/codebndr/MatrixMath/issues
Pull requests https://patch-diff.githubusercontent.com/codebndr/MatrixMath/pulls
Actions https://patch-diff.githubusercontent.com/codebndr/MatrixMath/actions
Projects https://patch-diff.githubusercontent.com/codebndr/MatrixMath/projects
Wiki https://patch-diff.githubusercontent.com/codebndr/MatrixMath/wiki
Security https://patch-diff.githubusercontent.com/codebndr/MatrixMath/security
Insights https://patch-diff.githubusercontent.com/codebndr/MatrixMath/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/codebndr/MatrixMath/issues/1
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/codebndr/MatrixMath/issues/1
Copy functionhttps://patch-diff.githubusercontent.com/codebndr/MatrixMath/issues/1#top
https://github.com/davidbsp
https://github.com/davidbsp
davidbsphttps://github.com/davidbsp
on Jan 11, 2018https://github.com/codebndr/MatrixMath/issues/1#issue-287795875
@tzikishttps://github.com/tzikis
@eecharliehttps://github.com/eecharlie
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.