Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
Public Member Functions | Public Attributes | List of all members
smith::FieldStateWeightedSum Struct Reference

temporary object to register the multiplication of a gretl::State<double> with a FieldState. Casts back More...

#include <field_state.hpp>

Public Member Functions

 FieldStateWeightedSum (const std::vector< double > &w, const std::vector< FieldState > &f)
 construct from double weights, and fields
 
 FieldStateWeightedSum (const std::vector< gretl::State< double >> &w, const std::vector< FieldState > &f, double initial_scaling)
 construct from State<double> weights, and fields
 
 FieldStateWeightedSum (const FieldStateWeightedSum &old)=default
 default copy
 
FieldStateWeightedSumoperator= (const FieldStateWeightedSum &old)=default
 default assignment
 
FieldStateWeightedSumoperator+= (const FieldStateWeightedSum &b)
 add another weighted sum in place
 
FieldStateWeightedSumoperator-= (const FieldStateWeightedSum &b)
 subtract another weighted sum in place
 
FieldStateWeightedSumoperator*= (double weight)
 mulitply by a fixed scalar
 
FieldStateWeightedSum operator- () const
 negate
 
 operator FieldState () const
 conversion operator to a FieldState
 

Public Attributes

std::vector< double > weights_
 non-differentiable weights
 
std::vector< FieldStateweighted_fields_
 fields to weight by non-differentiable weights
 
std::vector< gretl::State< double > > differentiable_weights_
 differentiable weights
 
std::vector< FieldStatedifferentiably_weighted_fields_
 fields to weight by differentiable weights
 
std::vector< double > differentiable_scale_factors_
 flag differentiable weights to be negated
 

Detailed Description

temporary object to register the multiplication of a gretl::State<double> with a FieldState. Casts back

Definition at line 103 of file field_state.hpp.


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