Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Commit 0170acb

Browse files
committed
Merge branch 'main' into mscroggs/doc-updates
2 parents 8da44af + 1622fce commit 0170acb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/traits.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ pub trait FiniteElement {
3333
fn dim(&self) -> usize;
3434

3535
/// The shape of the values returned by functions in $\mathcal{V}$.
36+
///
37+
/// If the values are scalar an empty slice is returned.
3638
fn value_shape(&self) -> &[usize];
3739

3840
/// The number of values returned.
3941
///
4042
/// If (for example) `value_shape` is `[3, 4]` then `value_size` is $3\times4 = 12$.
43+
/// If `value_shape` returns an empty array (ie the shape functions are scalar) the
44+
// convention is used that the product of the elements of an empty array is 1.
4145
fn value_size(&self) -> usize;
4246

4347
/// Tabulate the values of the basis functions and their derivatives at a set of points

0 commit comments

Comments
 (0)