@@ -53,17 +53,32 @@ def __init__(
5353 def get_polynomial_basis (
5454 self , reshape : bool = True
5555 ) -> typing .List [AnyFunction ]:
56- """Get the symbolic polynomial basis for the element."""
56+ """Get the symbolic polynomial basis for the element.
57+
58+ Returns:
59+ The polynomial basis
60+ """
5761 raise ValueError ("Polynomial basis not supported for barycentric dual elements." )
5862
5963 def get_dual_matrix (self ) -> sympy .matrices .dense .MutableDenseMatrix :
60- """Get the dual matrix."""
64+ """Get the dual matrix.
65+
66+ Returns:
67+ The dual matrix
68+ """
6169 raise ValueError ("Dual matrix not supported for barycentric dual elements." )
6270
6371 def get_basis_functions (
6472 self , use_tensor_factorisation : bool = False
6573 ) -> typing .List [AnyFunction ]:
66- """Get the basis functions of the element."""
74+ """Get the basis functions of the element.
75+
76+ Args:
77+ use_tensor_factorisation: Should a tensor factorisation be used?
78+
79+ Returns:
80+ The basis functions
81+ """
6782 assert not use_tensor_factorisation
6883
6984 if self ._basis_functions is None :
@@ -102,7 +117,15 @@ def get_basis_functions(
102117 return self ._basis_functions
103118
104119 def entity_dofs (self , entity_dim : int , entity_number : int ) -> typing .List [int ]:
105- """Get the numbers of the DOFs associated with the given entity."""
120+ """Get the numbers of the DOFs associated with the given entity.
121+
122+ Args:
123+ entity_dim: The dimension of the entity
124+ entity_number: The number of the entity
125+
126+ Returns:
127+ The numbers of the DOFs associated with the entity
128+ """
106129 out = []
107130 for i , e in enumerate (self .dof_entities ):
108131 if e == (entity_dim , entity_number ):
@@ -115,14 +138,30 @@ def map_to_cell(
115138 forward_map : typing .Optional [PointType ] = None ,
116139 inverse_map : typing .Optional [PointType ] = None
117140 ) -> typing .List [AnyFunction ]:
118- """Map the basis onto a cell using the appropriate mapping for the element."""
141+ """Map the basis onto a cell using the appropriate mapping for the element.
142+
143+ Args:
144+ vertices_in: The vertices of the cell
145+ basis: The basis functions
146+ forward_map: The map from the reference to the cell
147+ inverse_map: The map to the reference from the cell
148+
149+ Returns:
150+ The basis functions mapped to the cell
151+ """
119152 raise NotImplementedError ()
120153
121154 def plot_dof_diagram (
122155 self , filename : typing .Union [str , typing .List [str ]],
123156 plot_options : typing .Dict [str , typing .Any ] = {}, ** kwargs : typing .Any
124157 ):
125- """Plot a diagram showing the DOFs of the element."""
158+ """Plot a diagram showing the DOFs of the element.
159+
160+ Args:
161+ filename: The file name
162+ plot_options: Options for the plot
163+ kwargs: Keyword arguments
164+ """
126165 img = Picture (** kwargs )
127166
128167 for entities in self .reference .z_ordered_entities ():
0 commit comments