{"id":18792368,"url":"https://github.com/kplanisphere/matrix-vector-ops-cpp","last_synced_at":"2025-12-28T09:30:14.590Z","repository":{"id":241955049,"uuid":"808302951","full_name":"KPlanisphere/matrix-vector-ops-cpp","owner":"KPlanisphere","description":"Proyecto 1 - Estructuras de Datos","archived":false,"fork":false,"pushed_at":"2024-05-30T19:40:08.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T15:26:02.969Z","etag":null,"topics":["2d-matrices","algorithm-implementation","beginner-projects","cpp","data-structures","dynamic-arrays","matrix-operations","vector-operations"],"latest_commit_sha":null,"homepage":"https://linktr.ee/planisphere.kgz","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KPlanisphere.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-05-30T19:37:43.000Z","updated_at":"2024-05-30T21:38:11.000Z","dependencies_parsed_at":"2024-05-30T22:33:20.448Z","dependency_job_id":"5c940743-c1a9-4567-bd90-854411d9b652","html_url":"https://github.com/KPlanisphere/matrix-vector-ops-cpp","commit_stats":null,"previous_names":["kplanisphere/matrix-vector-ops-cpp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fmatrix-vector-ops-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fmatrix-vector-ops-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fmatrix-vector-ops-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fmatrix-vector-ops-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KPlanisphere","download_url":"https://codeload.github.com/KPlanisphere/matrix-vector-ops-cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718371,"owners_count":19685725,"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":["2d-matrices","algorithm-implementation","beginner-projects","cpp","data-structures","dynamic-arrays","matrix-operations","vector-operations"],"created_at":"2024-11-07T21:19:38.888Z","updated_at":"2025-12-28T09:30:14.559Z","avatar_url":"https://github.com/KPlanisphere.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matrix Vector Operations in C++\n\n### Description\n\nThis project demonstrates basic operations on a 2D matrix using vectors in C++. The main functionalities include creating a matrix based on user input, displaying the matrix, and modifying the matrix values. The project is suitable for beginners learning about dynamic data structures and input/output operations in C++.\n\n### Features\n\n-   Dynamic matrix creation based on user input for rows and columns.\n-   Input values for each element of the matrix.\n-   Display the initial matrix.\n-   Modify the matrix elements based on new user input.\n-   Display the modified matrix.\n\n### Code Snippets\n\n**Matrix Creation and Initial Display:**\n\n```cpp\n#include \u003ciostream\u003e\n#include \u003cvector\u003e\n\nint main() {\n    int fil, col;\n    int val = 0;\n    std::vector\u003c std::vector\u003cint\u003e \u003e matriz;\n\n    std::cout \u003c\u003c \"FILAS: \";\n    std::cin \u003e\u003e fil;\n    std::cout \u003c\u003c \"COLUMNAS: \";\n    std::cin \u003e\u003e col;\n\n    for (int i = 0; i \u003c fil; i++) {\n        std::vector\u003cint\u003e v1;\n        for (int j = 0; j \u003c col; j++) {\n            std::cout \u003c\u003c \"Valor [\" \u003c\u003c i \u003c\u003c \"][\" \u003c\u003c j \u003c\u003c \"] = \";\n            std::cin \u003e\u003e val;\n            v1.push_back(val);\n        }\n        matriz.push_back(v1);\n    }\n\n    for (int i = 0; i \u003c matriz.size(); i++) {\n        for (int j = 0; j \u003c matriz[i].size(); j++) {\n            std::cout \u003c\u003c matriz[i][j] \u003c\u003c \" \";\n        }\n        std::cout \u003c\u003c std::endl;\n    }\n\n    system(\"pause\");\n}\n```\n**Matrix Modification and Display:**\n```cpp\n    std::cout \u003c\u003c \"\\nALTERANDO LOS ELEMENTOS!!!\" \u003c\u003c std::endl;\n    int nuevos;\n    for (int i = 0; i \u003c fil; i++) {\n        for (int j = 0; j \u003c col; j++) {\n            std::cout \u003c\u003c \"Valor [\" \u003c\u003c i \u003c\u003c \"][\" \u003c\u003c j \u003c\u003c \"] = \";\n            std::cin \u003e\u003e nuevos;\n            matriz[i][j] = nuevos;\n        }\n    }\n\n    for (int i = 0; i \u003c matriz.size(); i++) {\n        for (int j = 0; j \u003c matriz[i].size(); j++) {\n            std::cout \u003c\u003c matriz[i][j] \u003c\u003c \" \";\n        }\n        std::cout \u003c\u003c std::endl;\n    }\n\n    system(\"pause\");\n}\n```\n\n### How to Run\n\n1.  Compile the code using a C++ compiler, e.g., `g++ -o matrix matrix_vector_ops.cpp`.\n2.  Run the executable, e.g., `./matrix`.\n3.  Follow the on-screen prompts to input the matrix dimensions and values.\n4.  View the initial matrix.\n5.  Modify the matrix values as prompted and view the updated matrix.\n\n### Requirements\n\n-   C++ compiler\n-   Standard Library\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkplanisphere%2Fmatrix-vector-ops-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkplanisphere%2Fmatrix-vector-ops-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkplanisphere%2Fmatrix-vector-ops-cpp/lists"}