BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
Public Types | Public Member Functions | Public Attributes | List of all members
bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag > Struct Template Reference

#include <array_scalar_constant.h>

Inheritance diagram for bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag >:
Inheritance graph
[legend]
Collaboration diagram for bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag >:
Collaboration graph
[legend]

Public Types

using value_type = Scalar
 
using system_tag = SystemTag
 
using allocation_tag = bc::host_tag
 
using stack_allocated = std::true_type
 
using allocation_type = bc::host_tag
 
- Public Types inherited from bc::tensors::exprs::Scalar_Constant_Base< Scalar_Constant< Scalar, SystemTag > >
using copy_constructible = std::false_type
 
using move_constructible = std::false_type
 
using copy_assignable = std::false_type
 
using move_assignable = std::false_type
 
- Public Types inherited from bc::Shape< 0 >
using size_t = bc::size_t
 
using value_type = size_t
 
- Public Types inherited from bc::tensors::exprs::Kernel_Array_Base< Scalar_Constant< Scalar, SystemTag > >
using expression_template_array_type = std::true_type
 

Public Member Functions

BCINLINE Scalar_Constant (value_type scalar_)
 
template<class... integers>
BCINLINE auto operator() (const integers &...) const
 
BCINLINE auto operator[] (int) const
 
BCINLINE const value_typedata () const
 
- Public Member Functions inherited from bc::Shape< 0 >
BCINLINE Shape ()
 
template<class... Args>
BCINLINE Shape (const Args &...)
 
BCINLINE Dim< 0 > inner_shape () const
 
BCINLINE size_t operator[] (size_t i)
 
BCINLINE size_t size () const
 
BCINLINE size_t rows () const
 
BCINLINE size_t cols () const
 
BCINLINE size_t dim (int i) const
 
BCINLINE size_t outer_dim () const
 
BCINLINE size_t leading_dim (int i=0) const
 
BCINLINE bool operator== (const Shape &other) const
 
BCINLINE size_t coefficientwise_dims_to_index (size_t i) const
 
template<class... Integers>
BCINLINE size_t dims_to_index (Integers... ints) const
 
- Public Member Functions inherited from bc::tensors::exprs::Kernel_Array_Base< Scalar_Constant< Scalar, SystemTag > >
BCINLINE Kernel_Array_Base ()
 
- Public Member Functions inherited from bc::tensors::exprs::Expression_Template_Base< Scalar_Constant< Scalar, SystemTag > >
BCINLINE const Scalar_Constant< Scalar, SystemTag > & expression_template () const
 
BCINLINE Scalar_Constant< Scalar, SystemTag > & expression_template ()
 
BCINLINE Expression_Template_Base ()
 
void deallocate () const
 

Public Attributes

value_type scalar
 

Additional Inherited Members

- Static Public Attributes inherited from bc::tensors::exprs::Scalar_Constant_Base< Scalar_Constant< Scalar, SystemTag > >
static constexpr int tensor_iterator_dim
 
static constexpr int tensor_dim
 
- Static Public Attributes inherited from bc::Shape< 0 >
static constexpr int tensor_dim = 0
 

Member Typedef Documentation

◆ allocation_tag

template<class Scalar , class SystemTag >
using bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag >::allocation_tag = bc::host_tag

◆ allocation_type

template<class Scalar , class SystemTag >
using bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag >::allocation_type = bc::host_tag

◆ stack_allocated

template<class Scalar , class SystemTag >
using bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag >::stack_allocated = std::true_type

◆ system_tag

template<class Scalar , class SystemTag >
using bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag >::system_tag = SystemTag

◆ value_type

template<class Scalar , class SystemTag >
using bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag >::value_type = Scalar

Constructor & Destructor Documentation

◆ Scalar_Constant()

template<class Scalar , class SystemTag >
BCINLINE bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag >::Scalar_Constant ( value_type  scalar_)
inline

Member Function Documentation

◆ data()

template<class Scalar , class SystemTag >
BCINLINE const value_type* bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag >::data ( ) const
inline

◆ operator()()

template<class Scalar , class SystemTag >
template<class... integers>
BCINLINE auto bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag >::operator() ( const integers &  ...) const
inline

◆ operator[]()

template<class Scalar , class SystemTag >
BCINLINE auto bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag >::operator[] ( int  ) const
inline

Member Data Documentation

◆ scalar

template<class Scalar , class SystemTag >
value_type bc::tensors::exprs::Scalar_Constant< Scalar, SystemTag >::scalar

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