From 46cae873fa2bd7973aa2e98d5955d2287822c604 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Fri, 20 May 2016 21:41:54 +0000 Subject: Array: add array_alloc_tmps_* --- doc/libinum-doc.html | 33 +++++++++++++++++++++++++++++++-- doc/libinum-doc.php | 20 ++++++++++++++++++-- 2 files changed, 49 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/libinum-doc.html b/doc/libinum-doc.html index e50e8f7..1486797 100644 --- a/doc/libinum-doc.html +++ b/doc/libinum-doc.html @@ -76,10 +76,10 @@ -

libinum v1.0

+

libinum v1.0.1

- This is the official documentation for libinum, version 1.0. + This is the official documentation for libinum, version 1.0.1.

Table of contents

@@ -1262,6 +1262,35 @@ copy input to the array pointed to by output. Does not initialize *output, so *output must be initialized ahead of time, and its memory must be larger or equal to the length of input. Returns LIBINUM_ERROR_SIZE_MISMATCH if the memory of *output is smaller than the length of input.
+
  • + +
    + int array_mpfr_alloc_tmps(unsigned int n, array_mpfr* array) +
    + +
    + int array_2_mpfr_alloc_tmps(unsigned int n, array_2_mpfr* array) +
    + +
    + int array_str_alloc_tmps(unsigned int n, array_str* array) +
    + +
    + int array_polynomial_double_alloc_tmps(unsigned int n, array_polynomial_double* array) +
    + +
    + int array_polynomial_ldouble_alloc_tmps(unsigned int n, array_polynomial_ldouble* array) +
    + +
    + int array_polynomial_mpfr_alloc_tmps(unsigned int n, array_polynomial_mpfr* array) +
    +
    + Ensure that *array has at least n allocated values. If it has fewer, then allocate as many as needed. +
  • +
  • diff --git a/doc/libinum-doc.php b/doc/libinum-doc.php index 2daf429..d140ab2 100644 --- a/doc/libinum-doc.php +++ b/doc/libinum-doc.php @@ -76,10 +76,10 @@ -

    libinum v1.0

    +

    libinum v1.0.1

    - This is the official documentation for libinum, version 1.0. + This is the official documentation for libinum, version 1.0.1.

    Table of contents

    @@ -839,6 +839,22 @@ copy input to the array pointed to by output. Does not initialize *output, so *output must be initialized ahead of time, and its memory must be larger or equal to the length of input. Returns LIBINUM_ERROR_SIZE_MISMATCH if the memory of *output is smaller than the length of input.

  • +
  • + + int array_${TYPENAME}_alloc_tmps(unsigned int n, array_${TYPENAME}* array) + + "); + } + ?> +
    + Ensure that *array has at least n allocated values. If it has fewer, then allocate as many as needed. +
  • +