• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jakirkham / dask-distance / 438 / 1
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix_license_typo
DEFAULT BRANCH: master
Ran 06 Oct 2017 09:25PM UTC
Files 5
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Oct 2017 09:22PM UTC coverage: 100.0%. Remained the same
PYVER="3.6"

push

travis-ci

jakirkham
In `pdist`, manually slice from `cdist`

Instead of using `triu` and masking out the upper triangle from the
flattened array, simply slice out portions corresponding to the upper
triangle and use `concatenate` to join them all together into the
result.

This confers a number of benefits. First that the shape of the
result is known instead of being unknown. Second no zero arrays are
generated in the process. Third compatibility functions related to
reshaping and generating indices can be dropped reducing the maintenance
overhead.

As far as optimizations go, this should be similar to `triu` as it
results in dropping out the same chunks that `triu` would have. For the
chunks that are dropped out completely, this strategy will be more
performant than `triu` as it will not generate zeros in there place. For
the chunks along the diagonal, this should have similar performance as
there will be some duplication of effort for these computations. However
slicing out the selections of interest should be a little more
performant than calling NumPy's `triu` due to using less memory and
potentially avoiding a copy.

315 of 315 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 438.1 (PYVER="3.6")
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 438
  • Travis Job 438.1
  • 9dbade0d on github
  • Prev Job for PYVER="3.6" on pdist_knwn_shape (#437.1)
  • Next Job for PYVER="3.6" on pdist_knwn_shape (#439.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc