SYNTAX
------

C Syntax
^^^^^^^^

.. code-block:: c

    int MPI_Type_vector(int count, int blocklength, int stride,
        MPI_Datatype oldtype, MPI_Datatype* newtype)

    int MPI_Type_vector_c(MPI_Count count, MPI_Count blocklength,
        MPI_Count stride, MPI_Datatype oldtype, MPI_Datatype* newtype)

Fortran Syntax
^^^^^^^^^^^^^^

.. code-block:: fortran

    USE MPI
    ! or the older form: INCLUDE 'mpif.h'
    MPI_TYPE_VECTOR(COUNT, BLOCKLENGTH, STRIDE, OLDTYPE, NEWTYPE, IERROR)
    	INTEGER COUNT, BLOCKLENGTH, STRIDE, OLDTYPE, NEWTYPE, IERROR

Fortran 2008 Syntax
^^^^^^^^^^^^^^^^^^^

.. code-block:: fortran

    USE mpi_f08
    MPI_Type_vector(count, blocklength, stride, oldtype, newtype, ierror)
    	INTEGER, INTENT(IN) :: count, blocklength, stride
    	TYPE(MPI_Datatype), INTENT(IN) :: oldtype
    	TYPE(MPI_Datatype), INTENT(OUT) :: newtype
    	INTEGER, OPTIONAL, INTENT(OUT) :: ierror

    MPI_Type_vector(count, blocklength, stride, oldtype, newtype, ierror)
    	INTEGER(KIND=MPI_COUNT_KIND), INTENT(IN) :: count, blocklength, stride
    	TYPE(MPI_Datatype), INTENT(IN) :: oldtype
    	TYPE(MPI_Datatype), INTENT(OUT) :: newtype
    	INTEGER, OPTIONAL, INTENT(OUT) :: ierror
