This repository was archived by the owner on Dec 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 2626//! // Create an array to store the basis function values
2727//! let mut basis_values = DynArray::<f64, 4>::from_shape(element.tabulate_array_shape(0, 1));
2828//! // Create array containing the point [1/2, 1/2]
29- //! let mut points = DynArray::<f64, 2>::from_shape([2, 1]);
30- //! points[[0, 0]] = 1.0 / 2.0;
31- //! points[[1, 0]] = 1.0 / 2.0;
32- //! // Tabulate the element's basis functions at the point
33- //! element.tabulate(&points, 0, &mut basis_values);
34- //! println!(
35- //! "The values of the basis functions at the point (1/2, 1/2) are: {:?}",
36- //! basis_values.data()
37- //! );
29+ //! let mut points = DynArray::<f64, 2>::from_shape([2, 1]);
30+ //! points[[0, 0]] = 1.0 / 2.0;
31+ //! points[[1, 0]] = 1.0 / 2.0;
32+ //! // Tabulate the element's basis functions at the point
33+ //! element.tabulate(&points, 0, &mut basis_values);
34+ //! println!(
35+ //! "The values of the basis functions at the point (1/2, 1/2) are: {:?}",
36+ //! basis_values.data()
37+ //! );
3838//! ```
3939#![ cfg_attr( feature = "strict" , deny( warnings) , deny( unused_crate_dependencies) ) ]
4040#![ warn( missing_docs) ]
You can’t perform that action at this time.
0 commit comments