NumericAL
A header-only C++20 lexer built on REAL
Loading...
Searching...
No Matches
Public Attributes | List of all members
numerical::detail::axis_walk Struct Reference

The extents and strides that walk a tensor of shape with axis axis taken out: outer positions before it, inner after it, the axis itself extent long at stride inner. More...

#include <tensor_ops.hpp>

Public Attributes

std::size_t outer
 The product of the extents before the axis.
 
std::size_t extent
 The axis' extent.
 
std::size_t inner
 The product of the extents after the axis.
 

Detailed Description

The extents and strides that walk a tensor of shape with axis axis taken out: outer positions before it, inner after it, the axis itself extent long at stride inner.

Definition at line 62 of file tensor_ops.hpp.

Member Data Documentation

◆ extent

std::size_t numerical::detail::axis_walk::extent

The axis' extent.

Definition at line 65 of file tensor_ops.hpp.

◆ inner

std::size_t numerical::detail::axis_walk::inner

The product of the extents after the axis.

Definition at line 66 of file tensor_ops.hpp.

◆ outer

std::size_t numerical::detail::axis_walk::outer

The product of the extents before the axis.

Definition at line 64 of file tensor_ops.hpp.


The documentation for this struct was generated from the following file: