{"id":16573497,"url":"https://github.com/egel/lsm","last_synced_at":"2026-06-01T04:31:49.752Z","repository":{"id":13306584,"uuid":"15992926","full_name":"egel/lsm","owner":"egel","description":"Simple program written in C++ to calculate matrices by least squares method","archived":false,"fork":false,"pushed_at":"2014-02-17T14:38:37.000Z","size":212,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T15:24:14.834Z","etag":null,"topics":["cpp-library","cpp11","matrix-library"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egel.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}},"created_at":"2014-01-17T07:20:53.000Z","updated_at":"2017-02-17T13:35:29.000Z","dependencies_parsed_at":"2022-08-29T01:00:40.666Z","dependency_job_id":null,"html_url":"https://github.com/egel/lsm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/egel/lsm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egel%2Flsm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egel%2Flsm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egel%2Flsm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egel%2Flsm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egel","download_url":"https://codeload.github.com/egel/lsm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egel%2Flsm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33760645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"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":["cpp-library","cpp11","matrix-library"],"created_at":"2024-10-11T21:42:21.052Z","updated_at":"2026-06-01T04:31:49.736Z","avatar_url":"https://github.com/egel.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Least Squares Method\nThis very simple program was written in C++ to calculate least squares method (for regression analysis).\nIt's based on main matrix class to estimate line regresion of inputed data into matrices.\n\n\n## IDE\nThis little project has been built with [NetBeans IDE 7.4](https://netbeans.org/).\n\n\n## Matrix Class\nFeatures:\n\n  - Overwritten minor group of operators `()`, `=`, `+`, `+=`, `-`, `-=`, `\u003c\u003c`, `*`, `^`,\n  - Added some specyfic functions to the class Matrix like `transpose` or `determinant`,\n  - Added some helper functions to glue all friend and build-in functions together, like:\n    * isEvenNumber\n    * isNegativeNumber\n    * highestValue\n    * isMatrixSizeEqual\n    * etc. ;)\n\nWhat more TODO:\n\n  - To improve creating objects, constructor can be overwritten in ex: A(\"1,2;3,4;5,6;\") and it should create matrix A with dimension of 3x2 and filled cells with data. Some scratch of implementation is all ready and put in the comments in the class Matrix.\n\n\n## Download\n\nIt's two way to download.\n\n  - **Recommended**: Use [Git](http://git-scm.com/) and run `git clone git@github.com:egel/lsm.git` in terminal\n  - Download all files in package and extract it.\n\n\n## Install for Linux Ubuntu\nBefore you install this repo, first need to install or update your software:\n\n### Install boost library\n```\nsudo apt-get install libboost-all-dev\n```\n\n### Update/Install Java Development Kit 7\n```\nsudo add-apt-repository -y ppa:webupd8team/java\nsudo apt-get update\nsudo apt-get install -y oracle-jdk7-installer\nupdate-alternatives --display java\n```\nCheck java version\n\n```\njava -version\n```\n\n### g++ compiler\nNext, this is my article to update **g++ compiler** use it first. [How to update g++ in Ubuntu](http://blog.egel.pl/aktualizacja-kompilatora-gcc-oraz-g-na-ubuntu/)\n\n### Now you can install repo:\n\n```\ncd ~/Pulpit/\ngit clone git@github.com:egel/lsm.git\ncd ~/Pulpit/lsm/\n```\n\n### Install Netbeans\n * Download and install from [this site](https://netbeans.org/downloads/)\n\n * Open Netbeans and open project (Open -\u003e project)\n\n\u003e In some cases need to add main files like class and headers to the project in\norder to run it properly.\n\n * F6 - Compile and run project\n\nHappy hacking :)\n\n\n## Tests\nMinor and simple tests of basic functions and Least Square Method are all ready written in main file.\n\n\n## Improvements\nAll improvements wide or minor are welcome :)\n\n\n## License\nThe code is released under the [GNU General Public License 3](http://www.gnu.org/copyleft/gpl.html) - [Link to local license](https://github.com/egel/lsm/blob/master/LICENSE\n).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegel%2Flsm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegel%2Flsm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegel%2Flsm/lists"}