|
|
constexpr | StreamConstants (StreamConstants< T, R, C, MR, MC > const &)=default |
| |
|
constexpr | StreamConstants (StreamConstants< T, R, C, MR, MC > &&)=default |
| |
|
constexpr StreamConstants< T, R, C, MR, MC > & | operator= (StreamConstants< T, R, C, MR, MC > const &)=default |
| |
|
constexpr StreamConstants< T, R, C, MR, MC > & | operator= (StreamConstants< T, R, C, MR, MC > &&)=default |
| |
| constexpr | StreamConstants (T t, size_t r, size_t c) |
| | Constructs a tensor constants stream of the requested size and value. More...
|
| |
| constexpr Traits::elem_t | operator() (size_t i, size_t j) const |
| | Retrieves the requested tensor elements value, which, in this case is a specified constant. More...
|
| |
| constexpr Traits::elem_t | operator() (size_t i) const |
| | Retrieves the requested tensor elements value, which, in this case is a specified constant. More...
|
| |
|
constexpr | Stream (Stream< StreamConstants< T, R, C, MR, MC > > const &)=default |
| |
|
constexpr | Stream (Stream< StreamConstants< T, R, C, MR, MC > > &&)=default |
| |
|
constexpr Stream< StreamConstants< T, R, C, MR, MC > > & | operator= (Stream< StreamConstants< T, R, C, MR, MC > > const &)=default |
| |
|
constexpr Stream< StreamConstants< T, R, C, MR, MC > > & | operator= (Stream< StreamConstants< T, R, C, MR, MC > > &&)=default |
| |
| constexpr size_t | rows () const |
| |
| constexpr size_t | cols () const |
| |
| constexpr size_t | size () const |
| |
| constexpr Traits::elem_t | operator() (size_t i, size_t j) const |
| | Provides read only access to tensor elements. More...
|
| |
| constexpr Traits::elem_t | operator() (size_t i) const |
| | Provides read only access to tensor elements. More...
|
| |
| constexpr Traits::elem_t | operator[] (size_t i) const |
| | Provides read only access to tensor elements. More...
|
| |
| constexpr Traits::eval_t | eval () const |
| | Forces evaluation of this stream to a value backed type. More...
|
| |
|
constexpr | Dimensions (Dimensions< StreamConstants< T, R, C, MR, MC > > const &)=default |
| |
|
constexpr | Dimensions (Dimensions< StreamConstants< T, R, C, MR, MC > > &&)=default |
| |
|
constexpr Dimensions< StreamConstants< T, R, C, MR, MC > > & | operator= (Dimensions< StreamConstants< T, R, C, MR, MC > > const &)=default |
| |
|
constexpr Dimensions< StreamConstants< T, R, C, MR, MC > > & | operator= (Dimensions< StreamConstants< T, R, C, MR, MC > > &&)=default |
| |
| constexpr size_t | rows () const |
| |
| constexpr size_t | cols () const |
| |
| constexpr void | resize (size_t r, size_t c) |
| | Resizes a tensor's dimensions. More...
|
| |
template<typename T, size_t R, size_t C, size_t MR, size_t MC>
class lin::internal::StreamConstants< T, R, C, MR, MC >
Tensor stream where all element accesses return the same constant value.
- Template Parameters
-
| T | Stream element type. |
| R | Rows at compile time. |
| C | Columns at compile time. |
| MR | Maximum rows at compile time. |
| MC | Maximum columns at compile time. |
This is most commonly use to implement generators that produce tensor whose elements are filled by a single constant value.
- See also
- consts
-
nans
-
ones
-
zeros