pub fn read<T: H5Type, D: ndarray::Dimension>(&self) -> Result<Array<T, D>> {
        let shape = self.obj.get_shape()?;
        if let Some(ndim) = D::NDIM {
            let obj_ndim = shape.ndim();
            ensure!(obj_ndim == ndim, "ndim mismatch: expected {}, got {}", ndim, obj_ndim);
        }
        let vec = self.read_raw()?;
        let arr = ArrayD::from_shape_vec(shape, vec)?;
        Ok(arr.into_dimensionality()?)
    }
/// Reads a dataset/attribute into an n-dimensional array.
///
/// If the array has a fixed number of dimensions, it must match the dimensionality
/// of the dataset/attribute.
Reads a dataset/attribute into an n-dimensional array.
If the array has a fixed number of dimensions, it must match the dimensionality
of the dataset/attribute.
Reads a dataset / attribute into an n - dimensional array . If the array has a fixed number of dimensions it must match the dimensionality of the dataset / attribute .
pub fn read<T: H5Type, D: ndarray::Dimension>(&self) -> Result<Array<T, D>> {
        let shape = self.obj.get_shape()?;
        if let Some(ndim) = D::NDIM {
            let obj_ndim = shape.ndim();
            ensure!(obj_ndim == ndim, "ndim mismatch: expected {}, got {}", ndim, obj_ndim);
        }
        let vec = self.read_raw()?;
        let arr = ArrayD::from_shape_vec(shape, vec)?;
        Ok(arr.into_dimensionality()?)
    }
pub fn read < T : H5Type , D : ndarray :: Dimension > ( & self ) -> Result < Array < T , D > > { let shape = self . obj . get_shape ( ) ? ; if let Some ( ndim ) = D :: NDIM { let obj_ndim = shape . ndim ( ) ; ensure ! ( obj_ndim ndim " " ndim obj_ndim ) ; } let vec = self . read_raw ( ) ? ; let arr = ArrayD :: from_shape_vec ( shape , vec ) ? ; Ok ( arr . into_dimensionality ( ) ? ) }
Reads a dataset/attribute into an n-dimensional array.
Reads a dataset / attribute into an n - dimensional array .
&self
&self