nowfound

Life & fun · March 7, 2017

NT

NumPy to C++14: the xtensor cheat sheet

NumPy to C++14: the xtensor cheat sheet launched on March 7, 2017 with 6 votes, #1,494 of 3,481 launches that month and more than 50% of that year's launches. The site was still online in September 2026, 9 years on.

What it does

Two container types are provided. xt::xarray (dynamic number of dimensions) and xt::xtensor (static number of dimensions). Lazy helper functions return tensor expressions. Return types don’t hold any value and are evaluated upon access or assignment. They can be assigned to a container or directly used in expressions. xtensor’s meshgrid implementation corresponds to numpy’s 'ij' indexing order. xtensor offers lazy numpy-style broadcasting, and universal functions. Unlike numpy, no copy or temporary variables are created. The random module provides simple ways to create random tensor expressions, lazily. See numpy.random and xtensor random page. Concatenating expressions does not allocate…from xtensor.readthedocs.io

Does a similar job

all alternatives →

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, March 2017

the whole month →
  • A free online program to teach you how to start a company

    Life & fun · 2017 · startupschool.org

  • Neuralink▲890

    Elon Musk's newest company, merging our brain with AI

    AI · 2017 · neuralink.com

  • Illustrated summaries of bestselling nonfiction books

    Life & fun · 2017 · apps.apple.com

  • Canny▲704

    The easiest way to collect & manage feedback

    Growth · 2017 · canny.io

  • Timelines of amazing lives for visual learners

    Work · 2017

  • Breaker▲676

    The social podcast app 🎧

    Life & fun · 2017 · player.fm