Bases: dolfin.cpp.function.Expression
This class represents a constant-valued expression.
Overloaded versions
Constant(value)
Create scalar constant
The scalar to create a Constant object from.
Note
No example code available for this function.
Constant(value0, value1)
Create vector constant (dim = 2)
The first vector element.
The second vector element.
Note
No example code available for this function.
Constant(value0, value1, value2)
Create vector constant (dim = 3)
The first vector element.
The second vector element.
The third vector element.
Note
No example code available for this function.
Constant(values)
Create vector-valued constant
Values to create a vector-valued constant from.
Constant(value_shape, values)
Create tensor-valued constant for flattened array of values
Shape of tensor.
Values to create tensor-valued constant from.
Constant(constant)
Copy constructor
Object to be copied.
Overloaded versions
operator=(constant)
Assignment operator
Another constant.
operator=(constant)
Assignment operator
Another constant.
The membership flag