IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::isd::Linear1DFunction Class Reference

Linear one-dimensional function. More...

#include <IMP/isd/univariate_functions.h>

Inheritance diagram for IMP::isd::Linear1DFunction:

Detailed Description

Linear one-dimensional function.

Definition at line 110 of file univariate_functions.h.

Public Member Functions

 Linear1DFunction (Particle *a, Particle *b)
void add_to_derivatives (const Floats &x, DerivativeAccumulator &accum) const override
 update derivatives of particles
void add_to_particle_derivative (unsigned particle_no, double value, DerivativeAccumulator &accum) const override
 update derivatives of particles
FloatsList get_derivative_matrix (const FloatsList &xlist, bool) const override
 for testing purposes
Eigen::VectorXd get_derivative_vector (unsigned particle_no, const FloatsList &xlist) const override
 return derivative vector
ModelObjectsTemp get_inputs () const override
 particle manipulation
unsigned get_ndims_x () const override
 returns the number of input dimensions
unsigned get_ndims_y () const override
 returns the number of output dimensions
unsigned get_number_of_optimized_particles () const override
 returns the number of particles that are optimized
unsigned get_number_of_particles () const override
 returns the number of particles that this function uses
bool get_particle_is_optimized (unsigned particle_no) const override
 returns true if the particle whose index is provided is optimized
FloatsList get_second_derivative_vector (unsigned particle_a, unsigned particle_b, const FloatsList &xlist, bool) const override
 for testing purposes
Eigen::VectorXd get_second_derivative_vector (unsigned, unsigned, const FloatsList &xlist) const override
 return second derivative vector
virtual std::string get_type_name () const override
virtual ::IMP::VersionInfo get_version_info () const override
 Get information about the module and version of the object.
bool has_changed () const override
 return true if internal parameters have changed.
Floats operator() (const Floats &x) const override
 evaluate the function at a certain point
Eigen::VectorXd operator() (const FloatsList &xlist) const override
 evaluate the function at a list of points
FloatsList operator() (const FloatsList &xlist, bool) const override
 used for testing only
void update () override
 update internal parameters
Public Member Functions inherited from IMP::isd::UnivariateFunction
 UnivariateFunction (std::string str)
Public Member Functions inherited from IMP::Object
CheckLevel get_check_level () const
 get_derived_object (self)
 Return this object cast to the most derived subclass.
LogLevel get_log_level () const
void set_check_level (CheckLevel l)
void set_log_level (LogLevel l)
 Set the logging level used in this object.
const std::string & get_name () const
 Get the (not necessarily unique) name of this object.
void set_name (std::string name)
void set_was_used (bool tf) const
void show (std::ostream &out=std::cout) const
virtual void clear_caches ()

Additional Inherited Members

Protected Member Functions inherited from IMP::Object
 Object (std::string name)
 Construct an object with the given name.
virtual void do_destroy ()

Constructor & Destructor Documentation

◆ Linear1DFunction()

IMP::isd::Linear1DFunction::Linear1DFunction ( Particle * a,
Particle * b )

Definition at line 112 of file univariate_functions.h.

◆ ~Linear1DFunction()

virtual IMP::isd::Linear1DFunction::~Linear1DFunction ( )
virtual

Definition at line 271 of file univariate_functions.h.

Member Function Documentation

◆ add_to_derivatives()

void IMP::isd::Linear1DFunction::add_to_derivatives ( const Floats & x,
DerivativeAccumulator & accum ) const
overridevirtual

update derivatives of particles

Implements IMP::isd::UnivariateFunction.

Definition at line 164 of file univariate_functions.h.

◆ add_to_particle_derivative()

void IMP::isd::Linear1DFunction::add_to_particle_derivative ( unsigned particle_no,
double value,
DerivativeAccumulator & accum ) const
overridevirtual

update derivatives of particles

Implements IMP::isd::UnivariateFunction.

Definition at line 172 of file univariate_functions.h.

◆ get_derivative_matrix()

FloatsList IMP::isd::Linear1DFunction::get_derivative_matrix ( const FloatsList & xlist,
bool stupid ) const
overridevirtual

for testing purposes

Implements IMP::isd::UnivariateFunction.

Definition at line 203 of file univariate_functions.h.

Here is the call graph for this function:

◆ get_derivative_vector()

Eigen::VectorXd IMP::isd::Linear1DFunction::get_derivative_vector ( unsigned particle_no,
const FloatsList & xlist ) const
overridevirtual

return derivative vector

Implements IMP::isd::UnivariateFunction.

Definition at line 186 of file univariate_functions.h.

◆ get_inputs()

ModelObjectsTemp IMP::isd::Linear1DFunction::get_inputs ( ) const
overridevirtual

particle manipulation

Implements IMP::isd::UnivariateFunction.

Definition at line 262 of file univariate_functions.h.

◆ get_ndims_x()

unsigned IMP::isd::Linear1DFunction::get_ndims_x ( ) const
overridevirtual

returns the number of input dimensions

Implements IMP::isd::UnivariateFunction.

Definition at line 239 of file univariate_functions.h.

◆ get_ndims_y()

unsigned IMP::isd::Linear1DFunction::get_ndims_y ( ) const
overridevirtual

returns the number of output dimensions

Implements IMP::isd::UnivariateFunction.

Definition at line 240 of file univariate_functions.h.

◆ get_number_of_optimized_particles()

unsigned IMP::isd::Linear1DFunction::get_number_of_optimized_particles ( ) const
overridevirtual

returns the number of particles that are optimized

Implements IMP::isd::UnivariateFunction.

Definition at line 255 of file univariate_functions.h.

◆ get_number_of_particles()

unsigned IMP::isd::Linear1DFunction::get_number_of_particles ( ) const
overridevirtual

returns the number of particles that this function uses

Implements IMP::isd::UnivariateFunction.

Definition at line 242 of file univariate_functions.h.

◆ get_particle_is_optimized()

bool IMP::isd::Linear1DFunction::get_particle_is_optimized ( unsigned particle_no) const
overridevirtual

returns true if the particle whose index is provided is optimized

Implements IMP::isd::UnivariateFunction.

Definition at line 244 of file univariate_functions.h.

◆ get_second_derivative_vector() [1/2]

FloatsList IMP::isd::Linear1DFunction::get_second_derivative_vector ( unsigned particle_a,
unsigned particle_b,
const FloatsList & xlist,
bool stupid ) const
overridevirtual

for testing purposes

Implements IMP::isd::UnivariateFunction.

Definition at line 225 of file univariate_functions.h.

Here is the call graph for this function:

◆ get_second_derivative_vector() [2/2]

Eigen::VectorXd IMP::isd::Linear1DFunction::get_second_derivative_vector ( unsigned particle_a,
unsigned particle_b,
const FloatsList & xlist ) const
overridevirtual

return second derivative vector

Implements IMP::isd::UnivariateFunction.

Definition at line 217 of file univariate_functions.h.

◆ get_type_name()

virtual std::string IMP::isd::Linear1DFunction::get_type_name ( ) const
overridevirtual

Reimplemented from IMP::Object.

Definition at line 271 of file univariate_functions.h.

◆ get_version_info()

virtual ::IMP::VersionInfo IMP::isd::Linear1DFunction::get_version_info ( ) const
overridevirtual

Get information about the module and version of the object.

Reimplemented from IMP::Object.

Definition at line 271 of file univariate_functions.h.

◆ has_changed()

bool IMP::isd::Linear1DFunction::has_changed ( ) const
overridevirtual

return true if internal parameters have changed.

Implements IMP::isd::UnivariateFunction.

Definition at line 120 of file univariate_functions.h.

◆ operator()() [1/3]

Floats IMP::isd::Linear1DFunction::operator() ( const Floats & x) const
overridevirtual

evaluate the function at a certain point

Implements IMP::isd::UnivariateFunction.

Definition at line 140 of file univariate_functions.h.

◆ operator()() [2/3]

Eigen::VectorXd IMP::isd::Linear1DFunction::operator() ( const FloatsList & xlist) const
overridevirtual

evaluate the function at a list of points

Implements IMP::isd::UnivariateFunction.

Definition at line 146 of file univariate_functions.h.

◆ operator()() [3/3]

FloatsList IMP::isd::Linear1DFunction::operator() ( const FloatsList & xlist,
bool stupid ) const
overridevirtual

used for testing only

Implements IMP::isd::UnivariateFunction.

Definition at line 156 of file univariate_functions.h.

◆ update()

void IMP::isd::Linear1DFunction::update ( )
overridevirtual

update internal parameters

Implements IMP::isd::UnivariateFunction.

Definition at line 133 of file univariate_functions.h.


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