Class MHO_MinWeight.
More...
#include <MHO_MinWeight.hh>
Class MHO_MinWeight.
Tue Apr 2 09:41:24 AM EDT 2024.
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
- Date
◆ MHO_MinWeight()
hops::MHO_MinWeight::MHO_MinWeight |
( |
| ) |
|
◆ ~MHO_MinWeight()
hops::MHO_MinWeight::~MHO_MinWeight |
( |
| ) |
|
|
virtual |
◆ ExecuteInPlace()
bool hops::MHO_MinWeight::ExecuteInPlace |
( |
weight_type * |
in | ) |
|
|
overrideprotectedvirtual |
Zeroes out weights in-place for all values less than a specified minimum.
- Parameters
-
in | Input weight array to be modified in-place. |
- Returns
- True if execution was successful.
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< weight_type >.
◆ ExecuteOutOfPlace()
Copies input weight and executes in-place operation on output.
- Parameters
-
in | Input weight data to be copied |
out | (weight_type*) |
- Returns
- Result of ExecuteInPlace operation on output
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< weight_type >.
◆ InitializeInPlace()
bool hops::MHO_MinWeight::InitializeInPlace |
( |
weight_type * |
in | ) |
|
|
overrideprotectedvirtual |
◆ InitializeOutOfPlace()
Initializes out-of-place weights using input weights.
- Parameters
-
in | Pointer to constant input weight array. |
out | (weight_type*) |
- Returns
- True if initialization is successful.
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< weight_type >.
◆ SetMinWeight()
void hops::MHO_MinWeight::SetMinWeight |
( |
double |
min_weight | ) |
|
|
inline |
Setter for min weight.
- Parameters
-
min_weight | the minimum allowed weight value |
The documentation for this class was generated from the following files: