Vowpal Wabbit
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
VW::dense_parameters Class Reference

#include <array_parameters_dense.h>

Public Types

using iterator = details::dense_iterator< VW::weight >
 
using const_iterator = details::dense_iterator< const VW::weight >
 

Public Member Functions

 dense_parameters (size_t length, uint32_t stride_shift=0)
 
 dense_parameters ()
 
 dense_parameters (const dense_parameters &other)=delete
 
dense_parametersoperator= (const dense_parameters &other)=delete
 
dense_parametersoperator= (dense_parameters &&) noexcept
 
 dense_parameters (dense_parameters &&) noexcept
 
bool not_null ()
 
VW::weightfirst ()
 
VW::weightdata ()
 
const VW::weightdata () const
 
iterator begin ()
 
iterator end ()
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const VW::weightoperator[] (size_t i) const
 
VW::weightoperator[] (size_t i)
 
const VW::weightget (size_t i) const
 
VW::weightget (size_t i)
 
VW::weightstrided_index (size_t index)
 
const VW::weightstrided_index (size_t index) const
 
template<typename Lambda >
void set_default (Lambda &&default_func)
 
void set_zero (size_t offset)
 
uint64_t mask () const
 
uint64_t raw_length () const
 
uint64_t stride () const
 
uint32_t stride_shift () const
 
void stride_shift (uint32_t stride_shift)
 
void share (size_t length)
 

Static Public Member Functions

static dense_parameters shallow_copy (const dense_parameters &input)
 
static dense_parameters deep_copy (const dense_parameters &input)
 

Member Typedef Documentation

◆ const_iterator

◆ iterator

Constructor & Destructor Documentation

◆ dense_parameters() [1/4]

VW::dense_parameters::dense_parameters ( size_t  length,
uint32_t  stride_shift = 0 
)

◆ dense_parameters() [2/4]

VW::dense_parameters::dense_parameters ( )

◆ dense_parameters() [3/4]

VW::dense_parameters::dense_parameters ( const dense_parameters other)
delete

◆ dense_parameters() [4/4]

VW::dense_parameters::dense_parameters ( dense_parameters &&  )
noexcept

Member Function Documentation

◆ begin()

iterator VW::dense_parameters::begin ( )
inline

◆ cbegin()

const_iterator VW::dense_parameters::cbegin ( ) const
inline

◆ cend()

const_iterator VW::dense_parameters::cend ( ) const
inline

◆ data() [1/2]

VW::weight * VW::dense_parameters::data ( )
inline

◆ data() [2/2]

const VW::weight * VW::dense_parameters::data ( ) const
inline

◆ deep_copy()

static dense_parameters VW::dense_parameters::deep_copy ( const dense_parameters input)
static

◆ end()

iterator VW::dense_parameters::end ( )
inline

◆ first()

VW::weight * VW::dense_parameters::first ( )
inline

◆ get() [1/2]

VW::weight & VW::dense_parameters::get ( size_t  i)
inline

◆ get() [2/2]

const VW::weight & VW::dense_parameters::get ( size_t  i) const
inline

◆ mask()

uint64_t VW::dense_parameters::mask ( ) const
inline

◆ not_null()

bool VW::dense_parameters::not_null ( )

◆ operator=() [1/2]

dense_parameters & VW::dense_parameters::operator= ( const dense_parameters other)
delete

◆ operator=() [2/2]

dense_parameters & VW::dense_parameters::operator= ( dense_parameters &&  )
noexcept

◆ operator[]() [1/2]

VW::weight & VW::dense_parameters::operator[] ( size_t  i)
inline

◆ operator[]() [2/2]

const VW::weight & VW::dense_parameters::operator[] ( size_t  i) const
inline

◆ raw_length()

uint64_t VW::dense_parameters::raw_length ( ) const
inline

◆ set_default()

template<typename Lambda >
void VW::dense_parameters::set_default ( Lambda &&  default_func)
inline

◆ set_zero()

void VW::dense_parameters::set_zero ( size_t  offset)

◆ shallow_copy()

static dense_parameters VW::dense_parameters::shallow_copy ( const dense_parameters input)
static

◆ share()

void VW::dense_parameters::share ( size_t  length)

◆ stride()

uint64_t VW::dense_parameters::stride ( ) const
inline

◆ stride_shift() [1/2]

uint32_t VW::dense_parameters::stride_shift ( ) const
inline

◆ stride_shift() [2/2]

void VW::dense_parameters::stride_shift ( uint32_t  stride_shift)
inline

◆ strided_index() [1/2]

VW::weight & VW::dense_parameters::strided_index ( size_t  index)
inline

◆ strided_index() [2/2]

const VW::weight & VW::dense_parameters::strided_index ( size_t  index) const
inline

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