generalized-arrays.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* classes: h_files */
  2. #ifndef SCM_GENERALIZED_ARRAYS_H
  3. #define SCM_GENERALIZED_ARRAYS_H
  4. /* Copyright (C) 1995,1996,1997,1999,2000,2001, 2004, 2006, 2008, 2009 Free Software Foundation, Inc.
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public License
  8. * as published by the Free Software Foundation; either version 3 of
  9. * the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  19. * 02110-1301 USA
  20. */
  21. #include "libguile/__scm.h"
  22. #include "libguile/array-handle.h"
  23. /* These functions operate on all kinds of arrays that Guile knows about.
  24. */
  25. /** Arrays */
  26. SCM_API int scm_is_array (SCM obj);
  27. SCM_API SCM scm_array_p (SCM v, SCM unused);
  28. SCM_INTERNAL SCM scm_array_p_2 (SCM);
  29. SCM_API int scm_is_typed_array (SCM obj, SCM type);
  30. SCM_API SCM scm_typed_array_p (SCM v, SCM type);
  31. SCM_API size_t scm_c_array_rank (SCM ra);
  32. SCM_API SCM scm_array_rank (SCM ra);
  33. SCM_API SCM scm_array_dimensions (SCM ra);
  34. SCM_API SCM scm_array_type (SCM ra);
  35. SCM_API SCM scm_array_in_bounds_p (SCM v, SCM args);
  36. SCM_API SCM scm_array_ref (SCM v, SCM args);
  37. SCM_API SCM scm_array_set_x (SCM v, SCM obj, SCM args);
  38. SCM_API SCM scm_array_to_list (SCM v);
  39. SCM_INTERNAL void scm_init_generalized_arrays (void);
  40. #endif /* SCM_GENERALIZED_ARRAYS_H */
  41. /*
  42. Local Variables:
  43. c-file-style: "gnu"
  44. End:
  45. */