{"id":36806406,"url":"https://github.com/splace/tensor3","last_synced_at":"2026-01-12T13:40:20.252Z","repository":{"id":57605031,"uuid":"84380837","full_name":"splace/tensor3","owner":"splace","description":"Go lang; 3-component Vector and Matrix maths, arrays, 32/64 bit, parallel ops.","archived":false,"fork":false,"pushed_at":"2019-01-15T18:58:36.000Z","size":6403,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-06T22:13:37.370Z","etag":null,"topics":["golang-library","matrix","parallel","vector"],"latest_commit_sha":null,"homepage":"","language":"Go","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/splace.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":"2017-03-09T00:46:15.000Z","updated_at":"2024-02-14T16:22:08.000Z","dependencies_parsed_at":"2022-09-26T20:01:17.743Z","dependency_job_id":null,"html_url":"https://github.com/splace/tensor3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/splace/tensor3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splace%2Ftensor3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splace%2Ftensor3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splace%2Ftensor3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splace%2Ftensor3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splace","download_url":"https://codeload.github.com/splace/tensor3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splace%2Ftensor3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28339313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang-library","matrix","parallel","vector"],"created_at":"2026-01-12T13:40:20.177Z","updated_at":"2026-01-12T13:40:20.241Z","avatar_url":"https://github.com/splace.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"/*\n\n**Vector**, (3-**Scalar** x,y,z), and **Matrix**, (3-Vector array) Types.\n\nUseful methods on these, mostly operating in-place (with no returned reference no single line method chaining.)\n\nArrays of both, (called **Vectors** and **Matrices**), with their useful methods.\n\nVectorized/SIMD methods that accept a function and apply in to all the array.\n\nselectable single or parallel threaded, transparently, switched with a global var.\n\n**VectorRefs**; array of Vector pointers, with methods as Vectors but also converters to/from Vectors.\n\nthe five main types are available (in separate packages) with their base scalar typed as 64bit float, 32bit float, or fixed precision (int scaled for 3dp)\n\n\n\nnotes:\n\ndoesn't use \"math\" package, left to importers, if necessary.\n\nwhen parallel, array types are acted on in chunks by different threads.\n\n\n\ninstallation:\n\n\tget github.com/splace/tensor3   // 64bit\n\t//\tget github.com/splace/tensor3/32bit\n\t//\tget github.com/splace/tensor3/scaledint\n   \n\nExample:  100 x 1 million matrix multiplications, single threaded then parallel.\n\n\tpackage main\n\n\timport . \"github.com/splace/tensor3\"  // 64 bit\n\t//import . \"github.com/splace/tensor3/32bit\"\n\t//import . \"github.com/splace/tensor3/scaledint\"\n\timport \"time\"\n\timport \"fmt\"\n\n\tfunc main(){\n\t\tms := make(Matrices, 1000000)\n\t\t// fill in array of matrices\n\t\tfor i := range ms {\n\t\t\tms[i] = NewMatrix(1, 2, 3, 4, 5, 6, 7, 8, 9)\n\t\t}\n\t\tm := NewMatrix(9, 8, 7, 6, 5, 4, 3, 2, 1)\n\t\tstart:=time.Now()\n\n\t\t// multiply every matrix by m, do it 100 times (to make benchmark time resolution better.)\n\t\tfor i := 0; i \u003c 100; i++ {\n\t\t\tms.Product(m)\n\t\t}\n\t\tfmt.Println(time.Since(start))\n\t\t// same thing in parallel\n\t\tParallel=true\n\t\tstart=time.Now()\n\t\tfor i := 0; i \u003c 100; i++ {\n\t\t\tms.Product(m)\n\t\t}\n\t\tfmt.Println(time.Since(start))\n\t}\n\n\n*/\n\npackage tensor3  \n\nnote: there are a lot of methods for common operations on the main types, and documentation comments are often missing on basic methods that appear,to me, unambiguous from their name or i havent got round to yet.\n\n// Overview/docs: [![GoDoc](https://godoc.org/github.com/splace/tensor3?status.svg)](https://godoc.org/github.com/splace/tensor3)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplace%2Ftensor3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplace%2Ftensor3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplace%2Ftensor3/lists"}