cgv
cgv::math::v3_func< X, T > Class Template Referenceabstract

#include <mfunc.h>

Inheritance diagram for cgv::math::v3_func< X, T >:
cgv::math::mfunc< X, T >

Public Types

typedef cgv::math::vec< X > pnt_type
 points must have get_nr_independent_variables() components
 
typedef cgv::math::vec< X > vec_type
 vectors must have get_nr_independent_variables() components
 

Public Member Functions

unsigned int get_nr_independent_variables () const
 returns 3
 
virtual T evaluate (const pnt_type &p) const =0
 interface for evaluation of the multivariate function
 
virtual vec_type evaluate_gradient (const pnt_type &p) const
 

Detailed Description

template<typename X, typename T>
class cgv::math::v3_func< X, T >

specialization of a multivariate function to three independent variables, which only reimplements the method get_nr_independent_variables.

Member Function Documentation

◆ evaluate_gradient()

template<typename X , typename T >
virtual vec_type cgv::math::mfunc< X, T >::evaluate_gradient ( const pnt_type p) const
inlinevirtualinherited

interface for evaluation of the gradient of the multivariate function. default implementation uses central differences to approximate the gradient, with an epsilon of 1e-5.


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