Function: create1d


/* C */
struct sidl_int__array*
sidl_int__array_create1d(int32_t len);

// C++
static sidl::array<int32_t>
sidl::array<int32_t>::create1d(int32_t len);

C FORTRAN 77
       subroutine sidl_int__array_create1d_f(len, result)
       integer*4 len
       integer*8 result

! FORTRAN 90
subroutine create1d(len, result)
  integer (selected_int_kind(9)), intent(in) :: len
  type(sidl_int_1d), intent(out) :: result

// Java
  public Array1(int s0, boolean isRow);

This method creates a dense, one-dimensional vector of ints with a lower index of 0 and an upper index of $len - 1$. This is defined primarily as a convenience for C and C++ programmers. If $len \leq 0$, this routine returns NULL.





babel-0.9.6
users_guide Last Modified 2004-09-08

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