@@ -435,19 +435,21 @@ NB_MODULE(_basixcpp, m)
435
435
436
436
m.def (" sobolev_space_intersection" , &sobolev::space_intersection);
437
437
438
- nb::enum_<lattice::type>(m, " LatticeType" , nb::is_arithmetic ())
438
+ nb::enum_<lattice::type>(m, " LatticeType" , nb::is_arithmetic (),
439
+ " Lattice type." )
439
440
.value (" equispaced" , lattice::type::equispaced)
440
441
.value (" gll" , lattice::type::gll)
441
442
.value (" chebyshev" , lattice::type::chebyshev)
442
443
.value (" gl" , lattice::type::gl);
443
- nb::enum_<lattice::simplex_method>(m, " LatticeSimplexMethod " ,
444
- nb::is_arithmetic ())
444
+ nb::enum_<lattice::simplex_method>(
445
+ m, " LatticeSimplexMethod " , nb::is_arithmetic (), " Lattice simplex method. " )
445
446
.value (" none" , lattice::simplex_method::none)
446
447
.value (" warp" , lattice::simplex_method::warp)
447
448
.value (" isaac" , lattice::simplex_method::isaac)
448
449
.value (" centroid" , lattice::simplex_method::centroid);
449
450
450
- nb::enum_<polynomials::type>(m, " PolynomialType" , nb::is_arithmetic ())
451
+ nb::enum_<polynomials::type>(m, " PolynomialType" , nb::is_arithmetic (),
452
+ " Polynomial type." )
451
453
.value (" legendre" , polynomials::type::legendre)
452
454
.value (" bernstein" , polynomials::type::bernstein);
453
455
@@ -467,15 +469,16 @@ NB_MODULE(_basixcpp, m)
467
469
lattice::create<double >(celltype, n, type, exterior, method));
468
470
});
469
471
470
- nb::enum_<maps::type>(m, " MapType" , nb::is_arithmetic ())
472
+ nb::enum_<maps::type>(m, " MapType" , nb::is_arithmetic (), " Element map type. " )
471
473
.value (" identity" , maps::type::identity)
472
474
.value (" L2Piola" , maps::type::L2Piola)
473
475
.value (" covariantPiola" , maps::type::covariantPiola)
474
476
.value (" contravariantPiola" , maps::type::contravariantPiola)
475
477
.value (" doubleCovariantPiola" , maps::type::doubleCovariantPiola)
476
478
.value (" doubleContravariantPiola" , maps::type::doubleContravariantPiola);
477
479
478
- nb::enum_<sobolev::space>(m, " SobolevSpace" , nb::is_arithmetic ())
480
+ nb::enum_<sobolev::space>(m, " SobolevSpace" , nb::is_arithmetic (),
481
+ " Sobolev space." )
479
482
.value (" L2" , sobolev::space::L2)
480
483
.value (" H1" , sobolev::space::H1)
481
484
.value (" H2" , sobolev::space::H2)
@@ -486,13 +489,14 @@ NB_MODULE(_basixcpp, m)
486
489
.value (" HEin" , sobolev::space::HEin)
487
490
.value (" HDivDiv" , sobolev::space::HDivDiv);
488
491
489
- nb::enum_<quadrature::type>(m, " QuadratureType" , nb::is_arithmetic ())
492
+ nb::enum_<quadrature::type>(m, " QuadratureType" , nb::is_arithmetic (),
493
+ " Quadrature type." )
490
494
.value (" Default" , quadrature::type::Default)
491
495
.value (" gauss_jacobi" , quadrature::type::gauss_jacobi)
492
496
.value (" gll" , quadrature::type::gll)
493
497
.value (" xiao_gimbutas" , quadrature::type::xiao_gimbutas);
494
498
495
- nb::enum_<cell::type>(m, " CellType" , nb::is_arithmetic ())
499
+ nb::enum_<cell::type>(m, " CellType" , nb::is_arithmetic (), " Cell type. " )
496
500
.value (" point" , cell::type::point)
497
501
.value (" interval" , cell::type::interval)
498
502
.value (" triangle" , cell::type::triangle)
@@ -524,7 +528,8 @@ NB_MODULE(_basixcpp, m)
524
528
m.def (" cell_facet_jacobians" , [](cell::type cell_type)
525
529
{ return as_nbarrayp (cell::facet_jacobians<double >(cell_type)); });
526
530
527
- nb::enum_<element::family>(m, " ElementFamily" , nb::is_arithmetic ())
531
+ nb::enum_<element::family>(m, " ElementFamily" , nb::is_arithmetic (),
532
+ " Finite element family." )
528
533
.value (" custom" , element::family::custom)
529
534
.value (" P" , element::family::P)
530
535
.value (" BDM" , element::family::BDM)
@@ -540,8 +545,8 @@ NB_MODULE(_basixcpp, m)
540
545
.value (" Hermite" , element::family::Hermite)
541
546
.value (" iso" , element::family::iso);
542
547
543
- nb::enum_<element::lagrange_variant>(m, " LagrangeVariant " ,
544
- nb::is_arithmetic ())
548
+ nb::enum_<element::lagrange_variant>(
549
+ m, " LagrangeVariant " , nb::is_arithmetic (), " Lagrange element variant. " )
545
550
.value (" unset" , element::lagrange_variant::unset)
546
551
.value (" equispaced" , element::lagrange_variant::equispaced)
547
552
.value (" gll_warped" , element::lagrange_variant::gll_warped)
@@ -557,7 +562,8 @@ NB_MODULE(_basixcpp, m)
557
562
.value (" legendre" , element::lagrange_variant::legendre)
558
563
.value (" bernstein" , element::lagrange_variant::bernstein);
559
564
560
- nb::enum_<element::dpc_variant>(m, " DPCVariant" , nb::is_arithmetic ())
565
+ nb::enum_<element::dpc_variant>(m, " DPCVariant" , nb::is_arithmetic (),
566
+ " DPC variant." )
561
567
.value (" unset" , element::dpc_variant::unset)
562
568
.value (" simplex_equispaced" , element::dpc_variant::simplex_equispaced)
563
569
.value (" simplex_gll" , element::dpc_variant::simplex_gll)
@@ -648,7 +654,8 @@ NB_MODULE(_basixcpp, m)
648
654
discontinuous);
649
655
});
650
656
651
- nb::enum_<polyset::type>(m, " PolysetType" , nb::is_arithmetic ())
657
+ nb::enum_<polyset::type>(m, " PolysetType" , nb::is_arithmetic (),
658
+ " Polyset type." )
652
659
.value (" standard" , polyset::type::standard)
653
660
.value (" macroedge" , polyset::type::macroedge);
654
661
0 commit comments