// Read a vector compute, possibly computing it in the process.
//
// NOTE: There are warnings in extract_compute about making sure it is valid
//       to run the compute.  I'm not sure what it means, and it sounds to me
//       like this could possibly actually cause UB; I just have no idea how.
Read a vector compute, possibly computing it in the process.
NOTE: There are warnings in extract_compute about making sure it is valid
to run the compute.  I'm not sure what it means, and it sounds to me
like this could possibly actually cause UB; I just have no idea how.
Read a vector compute possibly computing it in the process . NOTE : There are warnings in extract_compute about making sure it is valid to run the compute . I ' m not sure what it means and it sounds to me like this could possibly actually cause UB ; I just have no idea how .
unsafe fn impl_extract_compute_1d(
        &mut self,
        name: &str,
        style: ComputeStyle,
        len: usize,
    ) -> FailResult<Vec<f64>>
    {Ok({
        assert_ne!(len, 0); // because extract_compute_any_d returns &T
        let p = self.__extract_compute_any_d(name, style, ComputeType::Vector)?;
        std::slice::from_raw_parts(p, len)
            .iter().map(|&c| c as f64).collect()
    })}
unsafe fn impl_extract_compute_1d ( & mut self , name : & str , style : ComputeStyle , len : usize , ) -> FailResult < Vec < f64 > > { Ok ( { assert_ne ! ( len 0 ) ; // because extract_compute_any_d returns &T let p = self . __extract_compute_any_d ( name , style , ComputeType :: Vector ) ? ; std :: slice :: from_raw_parts ( p , len ) . iter ( ) . map ( | & c | c as f64 ) . collect ( ) } ) }
Read a vector compute, possibly computing it in the process.
Read a vector compute possibly computing it in the process .
&mut self
name
&str
style
ComputeStyle
len
usize