Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::pdlp::ShardedWeightedAverage Class Reference

Detailed Description

Definition at line 39 of file sharded_optimization_utils.h.

#include <sharded_optimization_utils.h>

Public Member Functions

 ShardedWeightedAverage (const Sharder *sharder)
 ShardedWeightedAverage (ShardedWeightedAverage &&)=default
ShardedWeightedAverageoperator= (ShardedWeightedAverage &&)=default
void Add (const Eigen::VectorXd &datapoint, double weight)
void Clear ()
bool HasNonzeroWeight () const
double Weight () const
Eigen::VectorXd ComputeAverage () const
int NumTerms () const

Constructor & Destructor Documentation

◆ ShardedWeightedAverage() [1/2]

operations_research::pdlp::ShardedWeightedAverage::ShardedWeightedAverage ( const Sharder * sharder)
explicit

Definition at line 43 of file sharded_optimization_utils.cc.

◆ ShardedWeightedAverage() [2/2]

operations_research::pdlp::ShardedWeightedAverage::ShardedWeightedAverage ( ShardedWeightedAverage && )
default

Member Function Documentation

◆ Add()

void operations_research::pdlp::ShardedWeightedAverage::Add ( const Eigen::VectorXd & datapoint,
double weight )

Definition at line 54 of file sharded_optimization_utils.cc.

◆ Clear()

void operations_research::pdlp::ShardedWeightedAverage::Clear ( )

Definition at line 68 of file sharded_optimization_utils.cc.

◆ ComputeAverage()

VectorXd operations_research::pdlp::ShardedWeightedAverage::ComputeAverage ( ) const

Definition at line 74 of file sharded_optimization_utils.cc.

◆ HasNonzeroWeight()

bool operations_research::pdlp::ShardedWeightedAverage::HasNonzeroWeight ( ) const
inline

Definition at line 58 of file sharded_optimization_utils.h.

◆ NumTerms()

int operations_research::pdlp::ShardedWeightedAverage::NumTerms ( ) const
inline

Definition at line 68 of file sharded_optimization_utils.h.

◆ operator=()

ShardedWeightedAverage & operations_research::pdlp::ShardedWeightedAverage::operator= ( ShardedWeightedAverage && )
default

◆ Weight()

double operations_research::pdlp::ShardedWeightedAverage::Weight ( ) const
inline

Definition at line 61 of file sharded_optimization_utils.h.


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