src/measures/base.rs

branch
dev
changeset 61
4f468d35fa29
parent 60
9738b51d90d7
child 62
32328a74c790
child 63
7a8a55fd41c0
equal deleted inserted replaced
60:9738b51d90d7 61:4f468d35fa29
1 //! Basic definitions for measures
2
3 use serde::Serialize;
4 use alg_tools::types::Num;
5 use alg_tools::norms::{Norm, NormExponent};
6
7 /// This is used with [`Norm::norm`] to indicate that a Radon norm is to be computed.
8 #[derive(Copy,Clone,Serialize,Debug)]
9 pub struct Radon;
10 impl NormExponent for Radon {}
11
12 /// A trait for (Radon) measures.
13 ///
14 /// Currently has no methods, just the requirement that the Radon norm be implemented.
15 pub trait Measure<F : Num> : Norm<F, Radon> {
16 type Domain;
17 }
18
19 /// Decomposition of measures
20 pub struct MeasureDecomp;
21

mercurial