Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ pub trait FiniteElement {
fn dim(&self) -> usize;

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

/// The number of values returned.
///
/// If e.g. `value_shape = [3, 4]` then `value_size = 3 x 4 = 12`.
/// This is the product of the elements of `value_shape`, e.g. if `value_shape = [3, 4]` then `value_size = 3 x 4 = 12`.
/// 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`.
fn value_size(&self) -> usize;

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