Skip to main content

Shape Class

Declaration​

class simaai::kernels::Shape { ... }

Included Headers​

#include <tensor.h>

Public Constructors Index​

constexprShape ()=default
constexprShape (std::initializer_list< std::int64_t > dimensions)
constexprShape (std::span< const std::int64_t > dimensions)

Public Member Functions Index​

constexpr std::size_tsize () const noexcept
constexpr std::span< const std::int64_t >dimensions () const noexcept

Public Static Attributes Index​

static constexpr std::size_tmax_dimensions = 6

Definition at line 16 of file tensor.h.

Public Constructors​

Shape()​

constexpr simaai::kernels::Shape::Shape ()
constexpr default

Definition at line 20 of file tensor.h.

Shape()​

constexpr simaai::kernels::Shape::Shape (std::initializer_list< std::int64_t > dimensions)
inline constexpr

Definition at line 21 of file tensor.h.

Shape()​

constexpr simaai::kernels::Shape::Shape (std::span< const std::int64_t > dimensions)
inline explicit constexpr

Definition at line 23 of file tensor.h.

Public Member Functions​

dimensions()​

constexpr std::span< const std::int64_t > simaai::kernels::Shape::dimensions ()
inline constexpr noexcept

Definition at line 32 of file tensor.h.

size()​

constexpr std::size_t simaai::kernels::Shape::size ()
inline constexpr noexcept

Definition at line 31 of file tensor.h.

Public Static Attributes​

max_dimensions​

constexpr std::size_t simaai::kernels::Shape::max_dimensions = 6
constexpr static

Definition at line 18 of file tensor.h.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.