hedge :: data :: ConstantGivenFunction :: Class ConstantGivenFunction
[hide private]
[frames] | no frames]

Class ConstantGivenFunction

source code


A GivenFunction that has a constant value on all space.

Instance Methods [hide private]
 
__init__(self, value=0)
Initialize the caches and store the function f.
source code

Inherited from GivenFunction: boundary_interpolant, volume_interpolant

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, value=0)
(Constructor)

source code 

Initialize the caches and store the function f.

Parameters:
  • f - a function mapping space to a scalar value. If f.target_dimensions exists and equals n, then f maps into an n-dimensional vector space instead.
Overrides: object.__init__
(inherited documentation)