summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/doc/asymptote.texi
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-07-04 17:26:20 +0000
committerKarl Berry <karl@freefriends.org>2010-07-04 17:26:20 +0000
commit15807e15ade01ea275cb91ba5ea6b660b996406f (patch)
treed929429372f1984140fc0384c2fb73e4845a48a8 /Build/source/utils/asymptote/doc/asymptote.texi
parentea6aa8ed9ddfe75f76b6bf23e5b8737230be98e7 (diff)
asy 2.00
git-svn-id: svn://tug.org/texlive/trunk@19227 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/doc/asymptote.texi')
-rw-r--r--Build/source/utils/asymptote/doc/asymptote.texi21
1 files changed, 16 insertions, 5 deletions
diff --git a/Build/source/utils/asymptote/doc/asymptote.texi b/Build/source/utils/asymptote/doc/asymptote.texi
index 38b624a5ed3..7c4f3d4e9d3 100644
--- a/Build/source/utils/asymptote/doc/asymptote.texi
+++ b/Build/source/utils/asymptote/doc/asymptote.texi
@@ -5121,12 +5121,17 @@ If @code{n} is negative, search backwards from the end of the array for the
@cindex @code{search}
@item int search(T[] a, T key)
-For built-in ordered types @code{T}, searches a sorted ordered array
+For built-in ordered types @code{T}, searches a sorted array
@code{a} of @code{n} elements for k, returning the index @code{i}
if @code{a[i] <= key < a[i+1]}, @code{-1} if @code{key} is
less than all elements of @code{a}, or @code{n-1} if @code{key} is
greater than or equal to the last element of @code{a}.
+@cindex @code{search}
+@item int search(T[] a, T key, bool less(T i, T j))
+searches an array @code{a} sorted in ascending order such that element
+@code{i} precedes element @code{j} if @code{less(i,j)} is true;
+
@cindex @code{copy}
@item T[] copy(T[] a)
returns a copy of the array @code{a};
@@ -5152,6 +5157,7 @@ returns @code{true} if the arrays @code{a} and @code{b} are identical;
For built-in ordered types @code{T}, returns a copy of @code{a} sorted in
ascending order;
+@cindex @code{sort}
@anchor{sort}
@item T[][] sort(T[][] a)
For built-in ordered types @code{T}, returns a copy of @code{a} with the rows
@@ -5173,9 +5179,9 @@ pete 7
@end verbatim
@cindex @code{sort}
-@item T[] sort(T[] a, bool compare(T i, T j))
+@item T[] sort(T[] a, bool less(T i, T j))
returns a copy of @code{a} stably sorted in ascending order such that
-element @code{i} precedes element @code{j} if @code{compare(i,j)} is true.
+element @code{i} precedes element @code{j} if @code{less(i,j)} is true.
@cindex @code{transpose}
@item T[][] transpose(T[][] a)
@@ -6148,11 +6154,11 @@ sequentially, returning the index of @code{x} in the resulting array.
@cindex @code{lexorder}
@item bool lexorder(pair a, pair b)
-returns the lexicographical partial order of @code{a} and @code{b}.
+returns the strict lexicographical partial order of @code{a} and @code{b}.
@cindex @code{lexorder}
@item bool lexorder(triple a, triple b)
-returns the lexicographical partial order of @code{a} and @code{b}.
+returns the strict lexicographical partial order of @code{a} and @code{b}.
@end table
@node interpolate
@@ -6574,6 +6580,11 @@ The points are connected using the interpolation specified by @code{join}:
the abbreviation @code{Spline} is also accepted);
@cindex @code{Hermite}
+@cindex @code{notaknot}
+@cindex @code{natural}
+@cindex @code{periodic}
+@cindex @code{clamped}
+@cindex @code{monotonic}
@cindex @code{Hermite(splinetype splinetype}
@item @code{Hermite} (standard cubic spline interpolation using boundary
condition @code{notaknot}, @code{natural}, @code{periodic},