{"id":16499419,"url":"https://github.com/tpapp/squeezing.jl","last_synced_at":"2026-01-31T18:32:41.052Z","repository":{"id":55588508,"uuid":"123436747","full_name":"tpapp/Squeezing.jl","owner":"tpapp","description":"Convenient syntax for removing singleton dimensions from array reductions.","archived":false,"fork":false,"pushed_at":"2020-12-20T09:19:15.000Z","size":6,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-20T20:05:12.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-01T13:12:30.000Z","updated_at":"2019-06-14T01:43:00.000Z","dependencies_parsed_at":"2022-08-15T03:50:20.962Z","dependency_job_id":null,"html_url":"https://github.com/tpapp/Squeezing.jl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tpapp/Squeezing.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FSqueezing.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FSqueezing.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FSqueezing.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FSqueezing.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpapp","download_url":"https://codeload.github.com/tpapp/Squeezing.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FSqueezing.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28949408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"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":[],"created_at":"2024-10-11T14:52:34.540Z","updated_at":"2026-01-31T18:32:41.038Z","avatar_url":"https://github.com/tpapp.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Squeezing\n\n[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](http://www.repostatus.org/badges/latest/wip.svg)](http://www.repostatus.org/#wip)\n[![Build Status](https://travis-ci.org/tpapp/Squeezing.jl.svg?branch=master)](https://travis-ci.org/tpapp/Squeezing.jl)\n[![Coverage Status](https://coveralls.io/repos/tpapp/Squeezing.jl/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/tpapp/Squeezing.jl?branch=master)\n[![codecov.io](http://codecov.io/github/tpapp/Squeezing.jl/coverage.svg?branch=master)](http://codecov.io/github/tpapp/Squeezing.jl?branch=master)\n\nConvenient syntax for removing singleton dimensions from array reductions.\n\n## Installation\n\nThis package is not (yet) registered. Run\n```julia\nPkg.clone(\"https://github.com/tpapp/Squeezing.jl.git\")\n```\nto install it.\n\n## Usage\n\nJust put `@squeezing` before reducing expressions.\n\n```julia\njulia\u003e using Squeezing\n\njulia\u003e @squeezing sum(ones(3, 2), 1)\n2-element Array{Float64,1}:\n 3.0\n 3.0\n\njulia\u003e @squeezing reducedim(max, A, 1)\n4-element Array{Int64,1}:\n  4\n  8\n 12\n 16\n```\n\nDon't forget the `()` if using it as part of an expression:\n\n```julia\n@squeezing(sum(ones(3, 2), 1)) == [3.0, 3.0]\n```\n\n## How it works\n\n`@squeezing f(args...)` is equivalent to `squeeze(f(args...), last(args))`. It preserves type stability.\n\n## Related\n\nIssue [#16606](https://github.com/JuliaLang/julia/issues/16606), PR [#23500](https://github.com/JuliaLang/julia/pull/23500), [discussion](https://discourse.julialang.org/t/sum-squeeze-as-one-function/2471/11).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Fsqueezing.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpapp%2Fsqueezing.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Fsqueezing.jl/lists"}