Function: stride


/* C */
int32_t
sidl_double__array_stride(const struct sidl_double__array *array, int32_t ind);

// C++
int32_t
sidl::array<double>::stride(int32_t ind) const;

C FORTRAN 77
       subroutine sidl_double__array_stride_f(array, ind, result)
       integer*8 array
       integer*4 ind, result

! FORTRAN 90
integer (selected_int_kind(9)) function stride(array, ind)
  type(sidl_double_1d), intent(in) :: array ! type depends on dimension
  integer (selected_int_kind(9)) :: ind

// Java
  public native int _stride(int dim);

This method returns the stride for a particular dimension. This stride indicates how much to add to a pointer to get for the current element this the particular dimension to the next.





babel-0.10.2
users_guide Last Modified 2005-03-23

http://www.llnl.gov/CASC/components
components@llnl.gov