ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nest::expr::Subscript Class Reference

#include <Subscript.h>

Public Member Functions

 Subscript (std::initializer_list< std::shared_ptr< Node > > indices)
 
uint32_t rank (void) const
 
const std::shared_ptr< expr::Node > & at (uint32_t n) const
 

Detailed Description

Definition at line 32 of file Subscript.h.

Constructor & Destructor Documentation

◆ Subscript()

nest::expr::Subscript::Subscript ( std::initializer_list< std::shared_ptr< Node > >  indices)
inline

Definition at line 35 of file Subscript.h.

35 : _indices{indices}
36 {
37 // DO NOTHING
38 }

Member Function Documentation

◆ at()

const std::shared_ptr< expr::Node > & nest::expr::Subscript::at ( uint32_t  n) const
inline

Definition at line 44 of file Subscript.h.

44{ return _indices.at(n); }

◆ rank()

uint32_t nest::expr::Subscript::rank ( void  ) const
inline

Definition at line 41 of file Subscript.h.

41{ return _indices.size(); }

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