pub fn create_vec_right(&self) -> Result<PetscVec> {
        let (ierr, vec) = unsafe {
            with_uninitialized(|vec| {
                slepc_sys::MatCreateVecs(self.as_raw(), vec, std::ptr::null_mut())
            })
        };
        check_error(ierr)?;
        Ok(PetscVec::from_raw(vec))
    }
/// Wrapper for [`slepc_sys::MatCreateVecs`]
///
/// Return right - vector that the matrix can be multiplied against
///
/// # Errors
/// `PETSc` returns error
Wrapper for [`slepc_sys::MatCreateVecs`]
Return right - vector that the matrix can be multiplied against
Wrapper for [ ` slepc_sys :: MatCreateVecs ` ] Return right - vector that the matrix can be multiplied against
pub fn create_vec_right(&self) -> Result<PetscVec> {
        let (ierr, vec) = unsafe {
            with_uninitialized(|vec| {
                slepc_sys::MatCreateVecs(self.as_raw(), vec, std::ptr::null_mut())
            })
        };
        check_error(ierr)?;
        Ok(PetscVec::from_raw(vec))
    }
pub fn create_vec_right ( & self ) -> Result < PetscVec > { let ( ierr , vec ) = unsafe { with_uninitialized ( | vec | { slepc_sys :: MatCreateVecs ( self . as_raw ( ) , vec , std :: ptr :: null_mut ( ) ) } ) } ; check_error ( ierr ) ? ; Ok ( PetscVec :: from_raw ( vec ) ) }
Wrapper for [`slepc_sys::MatCreateVecs`]
Return right - vector that the matrix can be multiplied against
Wrapper for [ ` slepc_sys :: MatCreateVecs ` ] Return right - vector that the matrix can be multiplied against
&self
errors
`PETSc` returns error
` PETSc ` returns error