{"id":15047510,"url":"https://github.com/tonitaga/mtlt","last_synced_at":"2025-04-10T00:51:15.394Z","repository":{"id":196341704,"uuid":"665598915","full_name":"tonitaga/MTLT","owner":"tonitaga","description":"MTLT is a header-only math matrix library that allows you to do compile-time calculations, perform atomic operations, and contains all the basic operations on matrices. The library is written in STL style, supports joint work with STL algorithms. Since C++11","archived":false,"fork":false,"pushed_at":"2025-03-13T16:13:56.000Z","size":269,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-10T00:51:10.204Z","etag":null,"topics":["cpp11","cpp14","cpp17","cpp20","cpp23","linear-algebra","matrix"],"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/tonitaga.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}},"created_at":"2023-07-12T14:58:14.000Z","updated_at":"2025-03-13T16:14:00.000Z","dependencies_parsed_at":"2023-10-03T06:17:42.041Z","dependency_job_id":"bb2f22b6-b8b5-4eed-a47f-85fec44e0c0e","html_url":"https://github.com/tonitaga/MTLT","commit_stats":null,"previous_names":["tonitaga/matrix-library-cpp","tonitaga/matrix-template-library-cpp","tonitaga/mtlt"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonitaga%2FMTLT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonitaga%2FMTLT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonitaga%2FMTLT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonitaga%2FMTLT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tonitaga","download_url":"https://codeload.github.com/tonitaga/MTLT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137997,"owners_count":21053775,"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","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":["cpp11","cpp14","cpp17","cpp20","cpp23","linear-algebra","matrix"],"created_at":"2024-09-24T20:59:23.148Z","updated_at":"2025-04-10T00:51:15.386Z","avatar_url":"https://github.com/tonitaga.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MTLT - Matrix Template Library Tonitaga\n\nMTLT is a header-only template matrix library that supports different data types, and has been C++ standard since 11\n\n## Install and Configuration\n\n#### 1. vcpkg and cmake\n\n```shell\ngit clone https://github.com/Microsoft/vcpkg.git\n.\\vcpkg\\bootstrap-vcpkg.bat\nvcpkg install mtlt\n```\n\nThen configure in your project CMakeLists.txt\n\n```cmake\ncmake_minimum_required(VERSION 3.5...3.16)\nproject(PROJECT)\n\nfind_package(mtlt REQUIRED)\n\nadd_executable(${PROJECT_NAME} main.cc)\ntarget_link_libraries(${PROJECT_NAME} PRIVATE mtlt::mtlt)\n```\n\nWrite simple source code in main.cc for check\n```c++\n#include \u003cmtlt/matrix.h\u003e\n#include \u003cmtlt/print.h\u003e // For mtlt::print\n\nint main() {\n  mtlt::matrix\u003cint\u003e matrix(3, 3, {\n\t1, 2, 3,\n\t4, 5, 6,\n\t7, 8, 9\n  });\n  \n  mtlt::print(matrix);\n}\n```\n\nBuild your program using cmake\n```shell\nmkdir build\ncd build\ncmake .. -DCMAKE_TOOLCHAIN_FILE=[vcpkg_root]/scripts/buildsystems/vcpkg.cmake\ncmake --build .\n```\n\n#### 2. Install as git submodule\n\n```shell\nmkdir third_party\ncd third_party\ngit submodule add https://github.com/tonitaga/Matrix-Template-Library-CPP.git\n```\n\nConfigure CMakeLists.txt\n```cmake\nadd_subdirectory(third_party/MTLT)\ntarget_link_libraries(${PROJECT_NAME} PRIVATE mtlt::mtlt)\n```\n\nBuild your program using cmake\n\n```shell\ngit submodule update --init\nmkdir build\ncd build\ncmake ..\ncmake --build .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonitaga%2Fmtlt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftonitaga%2Fmtlt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonitaga%2Fmtlt/lists"}