// To make clipping always valid, we envision that the spline is flat outside of
// the fitted region.  For C1 continuity, this means the derivatives normal to these
// boundaries must be zero.
To make clipping always valid, we envision that the spline is flat outside of
the fitted region.  For C1 continuity, this means the derivatives normal to these
boundaries must be zero.
To make clipping always valid we envision that the spline is flat outside of the fitted region . For C1 continuity this means the derivatives normal to these boundaries must be zero .
pub fn verify_clipping_is_valid(&self) -> FailResult<()> {
            let Input { value: _, di, dj } = self;
            macro_rules! check {
                ($iter:expr) => {
                    ensure!(
                        $iter.into_iter().all(|&x| x == 0.0),
                        "derivatives must be zero at the endpoints of the spline"
                    )
                };
            }
            check!(&di[0]);
            check!(di.last().unwrap());
            check!(dj.iter().map(|row| &row[0]));
            check!(dj.iter().map(|row| row.last().unwrap()));
            Ok(())
        }
pub fn verify_clipping_is_valid ( & self ) -> FailResult < ( ) > { let Input { value : _ , di , dj } = self ; macro_rules! check { ( $iter : expr ) => { ensure ( $iter into_iter ( ) all ( x x 0.0 ) " " ) } ; } check ! ( di [ 0 ] ) ; check ! ( di last ( ) unwrap ( ) ) ; check ! ( dj iter ( ) map ( row row [ 0 ] ) ) ; check ! ( dj iter ( ) map ( row row last ( ) unwrap ( ) ) ) ; Ok ( ( ) ) }
To make clipping always valid, we envision that the spline is flat outside of
the fitted region.
To make clipping always valid we envision that the spline is flat outside of the fitted region .
&self