You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: src/traits.rs
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -56,11 +56,14 @@ pub trait FiniteElement {
56
56
fndim(&self) -> usize;
57
57
58
58
/// The shape of the values returned by functions in $\mathcal{V}$.
59
+
///
60
+
/// If the values are scalar an empty slice is returned.
59
61
fnvalue_shape(&self) -> &[usize];
60
62
61
63
/// The number of values returned.
62
64
///
63
-
/// If e.g. `value_shape = [3, 4]` then `value_size = 3 x 4 = 12`.
65
+
/// This is the product of the elements of `value_shape`, e.g. if `value_shape = [3, 4]` then `value_size = 3 x 4 = 12`.
66
+
/// If `value_shape` returns an empty array (i.e. the shape functions are scalar) the convention is used that the product of the elements of an empty array is `1`.
64
67
fnvalue_size(&self) -> usize;
65
68
66
69
/// Tabulate the values of the basis functions and their derivatives at a set of points
0 commit comments