René's URL Explorer Experiment


Title: Inconsistent DirectSolver interface. · Issue #53 · NVIDIA/nvmath-python · GitHub

Open Graph Title: Inconsistent DirectSolver interface. · Issue #53 · NVIDIA/nvmath-python

X Title: Inconsistent DirectSolver interface. · Issue #53 · NVIDIA/nvmath-python

Description: Hi everyone! I've noticed a small inconsistency in the sparse solver interface, namely when it comes to using it with a 2D tensor where the last dimension is 1. Given a 3x3 lhs sparse matrix and a 3x2 rhs dense matrix: a = torch.sparse_c...

Open Graph Description: Hi everyone! I've noticed a small inconsistency in the sparse solver interface, namely when it comes to using it with a 2D tensor where the last dimension is 1. Given a 3x3 lhs sparse matrix and a ...

X Description: Hi everyone! I've noticed a small inconsistency in the sparse solver interface, namely when it comes to using it with a 2D tensor where the last dimension is 1. Given a 3x3 lhs sparse matrix an...

Opengraph URL: https://github.com/NVIDIA/nvmath-python/issues/53

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Inconsistent DirectSolver interface.","articleBody":"Hi everyone! I've noticed a small inconsistency in the sparse solver interface, namely when it comes to using it with a 2D tensor where the last dimension is 1.\n\nGiven a 3x3 lhs sparse matrix and a 3x2 rhs dense matrix:\n```\na = torch.sparse_coo_tensor([[0, 1, 2], [0, 1, 2]], [1.0, 1.0, 1.0], device=\"cuda\").to_sparse_csr()\nb = torch.randn([3, 2], device=\"cuda\")\n```\nwe can set up a solver for with:\n```\nnvsparse.DirectSolver(a, b.mT.contiguous().mT)\n```\nThis works fine. However, for a 3x1 rhs:\n```\nb = torch.randn([3,1], device=\"cuda\")\n```\nsetting up the solver in the same way breaks with:\n\n```\nTypeError(\"The RHS tensor([[1.],\\n        [1.],\\n        [1.]], device='cuda:0') must be a matrix or vector with col-major layout, and for implicitly-batched RHS (N-D \u003e= 3), each matrix sample must have col-major layout (the second dimension from the end must have unit stride.\")\n```\n\nIt would be great not to have to special-case this.\n\nBest,\nAna\n","author":{"url":"https://github.com/anadodik","@type":"Person","name":"anadodik"},"datePublished":"2026-01-15T16:04:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/53/nvmath-python/issues/53"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:13382662-733b-2fe8-bd00-add630cf4966
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9D36:29CC9A:39DBF:4BA60:6A61563C
html-safe-noncec0af45ca03f671c7c82f154f50d5490710024f676ad89f62071c0928eebe75cb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDM2OjI5Q0M5QTozOURCRjo0QkE2MDo2QTYxNTYzQyIsInZpc2l0b3JfaWQiOiIyNDY2MTI0MzIyODMyNDcxNjEyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac036bacfd6e8ac8cf8a059b5b560c7183f6df432679630d699736a32e5f0f3c67
hovercard-subject-tagissue:3818172459
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/NVIDIA/nvmath-python/53/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e57892caa8162f446293478316a344dfa1b4e9f6e383c31fe28ddae2c07a3159/NVIDIA/nvmath-python/issues/53
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e57892caa8162f446293478316a344dfa1b4e9f6e383c31fe28ddae2c07a3159/NVIDIA/nvmath-python/issues/53
og:image:altHi everyone! I've noticed a small inconsistency in the sparse solver interface, namely when it comes to using it with a 2D tensor where the last dimension is 1. Given a 3x3 lhs sparse matrix and a ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameanadodik
hostnamegithub.com
expected-hostnamegithub.com
Nonec258d2b06b498220e3b94af28b26bbbf58f4203a6373725f779afcc867afd263
turbo-cache-controlno-preview
go-importgithub.com/NVIDIA/nvmath-python git https://github.com/NVIDIA/nvmath-python.git
octolytics-dimension-user_id1728152
octolytics-dimension-user_loginNVIDIA
octolytics-dimension-repository_id788208729
octolytics-dimension-repository_nwoNVIDIA/nvmath-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id788208729
octolytics-dimension-repository_network_root_nwoNVIDIA/nvmath-python
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
releasebae60047c72c7890f36d34d78461f3453c546ee2
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NVIDIA/nvmath-python/issues/53#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fnvmath-python%2Fissues%2F53
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fnvmath-python%2Fissues%2F53
Sign up https://github.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=NVIDIA%2Fnvmath-python
Reloadhttps://github.com/NVIDIA/nvmath-python/issues/53
Reloadhttps://github.com/NVIDIA/nvmath-python/issues/53
Reloadhttps://github.com/NVIDIA/nvmath-python/issues/53
Please reload this pagehttps://github.com/NVIDIA/nvmath-python/issues/53
NVIDIA https://github.com/NVIDIA
nvmath-pythonhttps://github.com/NVIDIA/nvmath-python
Notifications https://github.com/login?return_to=%2FNVIDIA%2Fnvmath-python
Fork 41 https://github.com/login?return_to=%2FNVIDIA%2Fnvmath-python
Star 589 https://github.com/login?return_to=%2FNVIDIA%2Fnvmath-python
Code https://github.com/NVIDIA/nvmath-python
Issues 8 https://github.com/NVIDIA/nvmath-python/issues
Pull requests 0 https://github.com/NVIDIA/nvmath-python/pulls
Discussions https://github.com/NVIDIA/nvmath-python/discussions
Actions https://github.com/NVIDIA/nvmath-python/actions
Security and quality 0 https://github.com/NVIDIA/nvmath-python/security
Insights https://github.com/NVIDIA/nvmath-python/pulse
Code https://github.com/NVIDIA/nvmath-python
Issues https://github.com/NVIDIA/nvmath-python/issues
Pull requests https://github.com/NVIDIA/nvmath-python/pulls
Discussions https://github.com/NVIDIA/nvmath-python/discussions
Actions https://github.com/NVIDIA/nvmath-python/actions
Security and quality https://github.com/NVIDIA/nvmath-python/security
Insights https://github.com/NVIDIA/nvmath-python/pulse
Inconsistent DirectSolver interface.https://github.com/NVIDIA/nvmath-python/issues/53#top
https://github.com/yangcal
https://github.com/anadodik
anadodikhttps://github.com/anadodik
on Jan 15, 2026https://github.com/NVIDIA/nvmath-python/issues/53#issue-3818172459
yangcalhttps://github.com/yangcal
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.