src/base.rs

Thu, 04 Dec 2025 14:36:22 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Thu, 04 Dec 2025 14:36:22 -0500
changeset 3
fbdee8e4a78d
parent 0
e8f3b6c55ce7
permissions
-rw-r--r--

Added padded_iter to the Python interface, to deal with Fenics quirks

//! Basic definitions for measures

use alg_tools::norms::{Norm, NormExponent};
use alg_tools::types::Num;
use serde::Serialize;

/// This is used with [`Norm::norm`] to indicate that a Radon norm is to be computed.
#[derive(Copy, Clone, Serialize, Debug)]
pub struct Radon;
impl NormExponent for Radon {}

/// A trait for (Radon) measures.
///
/// Currently has no methods, just the requirement that the Radon norm be implemented.
pub trait Measure<F: Num>: Norm<Radon, F> {
    type Domain;
}

/// Decomposition of measures
pub struct MeasureDecomp;

mercurial