Title: Map dgCmatrix as integer sparse matrix · Issue #132 · RcppCore/RcppEigen · GitHub
Open Graph Title: Map dgCmatrix as integer sparse matrix · Issue #132 · RcppCore/RcppEigen
X Title: Map dgCmatrix as integer sparse matrix · Issue #132 · RcppCore/RcppEigen
Description: Dear developers, I have a dgCmatrix in R and want to call a function as below in cpp to deal with it. Eigen::SparseMatrix calc_overlap(Eigen::Map
Open Graph Description: Dear developers, I have a dgCmatrix in R and want to call a function as below in cpp to deal with it. Eigen::SparseMatrix calc_overlap(Eigen::Map X Description: Dear developers, I have a dgCmatrix in R and want to call a function as below in cpp to deal with it. Eigen::SparseMatrix calc_overlap(Eigen::Map<Eigen::SparseMatrix<int>>& cc_adj, ...
Opengraph URL: https://github.com/RcppCore/RcppEigen/issues/132
X: @github
Domain: patch-diff.githubusercontent.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Map dgCmatrix as integer sparse matrix","articleBody":"Dear developers,\r\n\r\nI have a dgCmatrix in R and want to call a function as below in cpp to deal with it. \r\n\r\nEigen::SparseMatrix\u003cdouble\u003e calc_overlap(Eigen::Map\u003cEigen::SparseMatrix\\\u003cint\\\u003e\u003e\u0026 cc_adj,\r\n Eigen::Map\u003cEigen::SparseMatrix\\\u003cint\\\u003e\u003e\u0026 cg_adj,\r\n double threshold) {\r\n Eigen::SparseMatrix\\\u003cint\\\u003e overlap_mat_all = cc_adj * cg_adj;\r\n return overlap_mat_all;\r\n}\r\n\r\nThe dgCmatrix 'cc_adj' and 'cg_adj' in R are large sparse matrices with integer values. I want to calculate the product of them by cpp. I used 'Map' to get rid of deep copies of these two large matrices. The scalar \\\u003cint\\\u003e is used to save memory. There is no error raised up when mapping to a dgCmatrix with \\\u003cint\\\u003e. but I'm not sure how it's working exactly. I guess the function makes deep copies instead, so the mapping doesn't work at all. Is it right?\r\n\r\nMy concern is that since you only allow mapping to dgCmatrix format sparse matrix for now, is there any possibility that you could wrap up a function to deal with 'ngCmatrix'?\r\n\r\nLooking forward to your kind reply.\r\n","author":{"url":"https://github.com/yanzhaobiomath","@type":"Person","name":"yanzhaobiomath"},"datePublished":"2023-10-19T13:53:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/132/RcppEigen/issues/132"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:33f736a1-7fed-8eb0-7e05-71be0d16e6b5 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id B1C6:28493E:13E63AE:1BCDCF6:6970CE6B html-safe-nonce 9df46a0e25d7e1e99d45bece43e65fb04b552481d4e4a344ba5eb219b34ed8f1 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUM2OjI4NDkzRToxM0U2M0FFOjFCQ0RDRjY6Njk3MENFNkIiLCJ2aXNpdG9yX2lkIjoiMjQ2Mzg0NDIyNzc1ODQ3NjkwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 61877ab8510ebdcb2d2017682417751214b9f890c3807e364e815fff3006700a hovercard-subject-tag issue:1952326645 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RcppCore/RcppEigen/132/issue_layout twitter:image https://opengraph.githubassets.com/47a05868565a2eb66e2ba6e74a4f68e258dba9772735b18c8d011adef30d9125/RcppCore/RcppEigen/issues/132 twitter:card summary_large_image og:image https://opengraph.githubassets.com/47a05868565a2eb66e2ba6e74a4f68e258dba9772735b18c8d011adef30d9125/RcppCore/RcppEigen/issues/132 og:image:alt Dear developers, I have a dgCmatrix in R and want to call a function as below in cpp to deal with it. Eigen::SparseMatrix calc_overlap(Eigen::Map og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username yanzhaobiomath hostname github.com expected-hostname github.com None 721764876e433c894814212f8100f6610f1dde78a987acc2e385d8be8e170e9c turbo-cache-control no-preview go-import github.com/RcppCore/RcppEigen git https://github.com/RcppCore/RcppEigen.git octolytics-dimension-user_id 5811336 octolytics-dimension-user_login RcppCore octolytics-dimension-repository_id 14022212 octolytics-dimension-repository_nwo RcppCore/RcppEigen octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 14022212 octolytics-dimension-repository_network_root_nwo RcppCore/RcppEigen turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 6ff3d08f4ee1c3f89ebedf4df8fc8fe851190294 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.