{"id":17140153,"url":"https://github.com/andrewssobral/dtt","last_synced_at":"2025-10-26T08:35:58.174Z","repository":{"id":37252995,"uuid":"204017095","full_name":"andrewssobral/dtt","owner":"andrewssobral","description":"A C++ header-only for data transfer between linear algebra libraries (Eigen, Armadillo, OpenCV, ArrayFire, LibTorch).","archived":false,"fork":false,"pushed_at":"2024-05-18T20:08:07.000Z","size":29,"stargazers_count":81,"open_issues_count":4,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T03:15:00.016Z","etag":null,"topics":["armadillo","arrayfire","cpp","eigen","libtorch","linear-algebra","opencv"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewssobral.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-08-23T14:44:44.000Z","updated_at":"2025-01-30T20:02:58.000Z","dependencies_parsed_at":"2025-04-11T03:15:00.786Z","dependency_job_id":"2df0e077-85bd-476e-8602-c7d74495852e","html_url":"https://github.com/andrewssobral/dtt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrewssobral/dtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewssobral%2Fdtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewssobral%2Fdtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewssobral%2Fdtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewssobral%2Fdtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewssobral","download_url":"https://codeload.github.com/andrewssobral/dtt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewssobral%2Fdtt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281079595,"owners_count":26440320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["armadillo","arrayfire","cpp","eigen","libtorch","linear-algebra","opencv"],"created_at":"2024-10-14T20:14:06.995Z","updated_at":"2025-10-26T08:35:58.137Z","avatar_url":"https://github.com/andrewssobral.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data Transfer Tools for C++ Linear Algebra Libraries.\nDTT is a **header-only** library that provides data transfer tools between C++ linear algebra libraries.\nCurrently, it supports data transfer between the following libraries:\n* Eigen (\u003e=3.3.x)\n* Armadillo (\u003e=9.x)\n* OpenCV (cv::Mat) (2.x, 3.x, 4.x) \n* ArrayFire (\u003e=3.x)\n* LibTorch (PyTorch C++) (\u003e=1.x)\n\nCurrent status:\n\nLast page update: 25/08/2019\n\n| From/To   | Eigen | Armadillo | OpenCV | ArrayFire | LibTorch |\n|-----------|:-----:|:---------:|:------:|:---------:|:--------:|\n| Eigen     |   -   |     X     |    X   |     X     |     X    |\n| Armadillo |   X   |     -     |    X   |     X     |     X    |\n| OpenCV    |   X   |     X     |    -   |     X     |     X    |\n| ArrayFire |   X   |     X     |    X   |     -     |     X    |\n| LibTorch  |   X   |     X     |    X   |     X     |     -    |\n\n\nTested on:\n* MacBook Pro (13-inch, 2017)\n* Mac OS X Mojave (10.14.5), Clang 10 (clang-1000.11.45.5), Xcode 10.1 with the following libraries:\n* * OpenCV 4.1.1 (stable, built from source)\n* * Eigen 3.3.7 (stable)\n* * Armadillo 9.600.5 (stable)\n* * ArrayFire 3.6.4 (stable)\n* * LibTorch (1.3.0.dev20190820)\n\nInstall dependencies:\n```\nbrew install eigen\nbrew install armadillo\n# download and install ArrayFire: https://arrayfire.com/download/\n# download and install LibTorch: https://pytorch.org/get-started/locally/\n# download adn install OpenCV: https://opencv.org/releases/\n```\n\nHow to compile and run:\n```\ngit clone https://github.com/andrewssobral/dtt.git\ncd dtt \u0026\u0026 mkdir build \u0026\u0026 cd build\ncmake -DCMAKE_PREFIX_PATH=$LIBTORCH_HOME ..\n./dtt_test\n```\n\nHow to use:\n```c++\n#include \u003cdtt.h\u003e\nusing namespace dtt;\n// that's all!\n```\n\nList of available functions:\n\n* From Eigen:\n* * eigen2arma\n* * eigen2cv\n* * eigen2af\n* * eigen2libtorch\n\n* From Armadillo:\n* * arma2eigen\n* * arma2cv\n* * arma2af\n* * arma2libtorch\n\n* From OpenCV:\n* * cv2eigen\n* * cv2arma\n* * cv2af\n* * cv2libtorch\n\n* From ArrayFire:\n* * af2eigen\n* * af2arma\n* * af2cv\n* * af2libtorch\n\n* From LibTorch:\n* * libtorch2eigen\n* * libtorch2arma\n* * libtorch2cv\n* * libtorch2af\n\nSee **test/dtt_test.h** and **test/dtt_test.cpp** for usage examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewssobral%2Fdtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewssobral%2Fdtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewssobral%2Fdtt/lists"}