ajsort.c


Function ajSortFloatDecI

Based on an array of floats, sort an ajint element array.

Synopsis

Prototype
void ajSortFloatDecI (
      const float* a,
      ajuint* p,
      ajuint n
);

TypeNameRead/WriteDescription
const float*aInputArray of floats used in sort tests
ajuint*pModifyArray of unsigned ints to be sorted depending on floats.
ajuintnInputNumber of elements to sort
void RETURN

Input
a:(Input)Array of floats used in sort tests
n:(Input)Number of elements to sort
Input & Output
p:(Modify)Array of unsigned ints to be sorted depending on floats.
Returns
void:No return value

Description

Based on an array of floats, sort an ajint element array.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSortIntDecI

Based on an array of ints, sort an ajint element array.

Synopsis

Prototype
void ajSortIntDecI (
      const ajint* a,
      ajuint* p,
      ajuint n
);

TypeNameRead/WriteDescription
const ajint*aInputArray of ints used in sort tests
ajuint*pModifyArray of ints to be sorted depending on ajints.
ajuintnInputNumber of elements to sort
void RETURN

Input
a:(Input)Array of ints used in sort tests
n:(Input)Number of elements to sort
Input & Output
p:(Modify)Array of ints to be sorted depending on ajints.
Returns
void:No return value

Description

Based on an array of ints, sort an ajint element array.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSortUintDecI

Based on an array of ints, sort an ajuint element array.

Synopsis

Prototype
void ajSortUintDecI (
      const ajuint* a,
      ajuint* p,
      ajuint n
);

TypeNameRead/WriteDescription
const ajuint*aInputArray of unsigned ints used in sort tests
ajuint*pModifyArray of ints to be sorted depending on unsigned ints
ajuintnInputNumber of elements to sort
void RETURN

Input
a:(Input)Array of unsigned ints used in sort tests
n:(Input)Number of elements to sort
Input & Output
p:(Modify)Array of ints to be sorted depending on unsigned ints
Returns
void:No return value

Description

Based on an array of ints, sort an ajuint element array.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSortFloatIncI

Based on an array of floats, sort (ascending) an ajint element array.

Synopsis

Prototype
void ajSortFloatIncI (
      const float* a,
      ajuint* p,
      ajuint n
);

TypeNameRead/WriteDescription
const float*aInputArray of floats used in sort tests
ajuint*pModifyArray of ints to be sorted depending on floats.
ajuintnInputNumber of elements to sort
void RETURN

Input
a:(Input)Array of floats used in sort tests
n:(Input)Number of elements to sort
Input & Output
p:(Modify)Array of ints to be sorted depending on floats.
Returns
void:No return value

Description

Based on an array of floats, sort (ascending) an ajint element array.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSortIntIncI

Based on an array of ints, sort (ascending) a second ajint element array.

Synopsis

Prototype
void ajSortIntIncI (
      const ajint* a,
      ajuint* p,
      ajuint n
);

TypeNameRead/WriteDescription
const ajint*aInputArray of ints used in sort tests
ajuint*pModifyArray of ints to be sorted depending on ints.
ajuintnInputNumber of elements to sort
void RETURN

Input
a:(Input)Array of ints used in sort tests
n:(Input)Number of elements to sort
Input & Output
p:(Modify)Array of ints to be sorted depending on ints.
Returns
void:No return value

Description

Based on an array of ints, sort (ascending) a second ajint element array.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSortUintIncI

Based on an array of uints, sort (ascending) a second ajint element array.

Synopsis

Prototype
void ajSortUintIncI (
      const ajuint* a,
      ajuint* p,
      ajuint n
);

TypeNameRead/WriteDescription
const ajuint*aInputArray of ints used in sort tests
ajuint*pModifyArray of uints to be sorted depending on uints.
ajuintnInputNumber of elements to sort
void RETURN

Input
a:(Input)Array of ints used in sort tests
n:(Input)Number of elements to sort
Input & Output
p:(Modify)Array of uints to be sorted depending on uints.
Returns
void:No return value

Description

Based on an array of uints, sort (ascending) a second ajint element array.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSorttwoIntIncI

Based on an array of ints, sort (ascending) both this array and a second ajint element array.

Synopsis

Prototype
void ajSorttwoIntIncI (
      ajint* a,
      ajuint* p,
      ajuint n
);

TypeNameRead/WriteDescription
ajint*aModifyArray of ints used in sort tests and itself sorted
ajuint*pModifySecond array of ints to be sorted
ajuintnInputNumber of elements to sort
void RETURN

Input
n:(Input)Number of elements to sort
Input & Output
a:(Modify)Array of ints used in sort tests and itself sorted
p:(Modify)Second array of ints to be sorted
Returns
void:No return value

Description

Based on an array of ints, sort (ascending) both this array and a second ajint element array.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSorttwoUintIncI

Based on an array of unsigned ints, sort (ascending) both this array and a second ajint element array.

Synopsis

Prototype
void ajSorttwoUintIncI (
      ajuint* a,
      ajuint* p,
      ajuint n
);

TypeNameRead/WriteDescription
ajuint*aModifyArray of ints used in sort tests and itself sorted
ajuint*pModifySecond array of ints to be sorted
ajuintnInputNumber of elements to sort
void RETURN

Input
n:(Input)Number of elements to sort
Input & Output
a:(Modify)Array of ints used in sort tests and itself sorted
p:(Modify)Second array of ints to be sorted
Returns
void:No return value

Description

Based on an array of unsigned ints, sort (ascending) both this array and a second ajint element array.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSortFloatDec

Sort a float array.

Synopsis

Prototype
void ajSortFloatDec (
      float* a,
      ajuint n
);

TypeNameRead/WriteDescription
float*aModifyArray of floats to sort
ajuintnInputNumber of elements to sort
void RETURN

Input
n:(Input)Number of elements to sort
Input & Output
a:(Modify)Array of floats to sort
Returns
void:No return value

Description

Sort a float array.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSortIntDec

Sort an ajint array.

Synopsis

Prototype
void ajSortIntDec (
      ajint* a,
      ajuint n
);

TypeNameRead/WriteDescription
ajint*aModifyArray of ints to sort
ajuintnInputNumber of elements to sort
void RETURN

Input
n:(Input)Number of elements to sort
Input & Output
a:(Modify)Array of ints to sort
Returns
void:No return value

Description

Sort an ajint array.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSortUintDec

Sort an ajuint array.

Synopsis

Prototype
void ajSortUintDec (
      ajuint* a,
      ajuint n
);

TypeNameRead/WriteDescription
ajuint*aModifyArray of unsigned ints to sort
ajuintnInputNumber of elements to sort
void RETURN

Input
n:(Input)Number of elements to sort
Input & Output
a:(Modify)Array of unsigned ints to sort
Returns
void:No return value

Description

Sort an ajuint array.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSortFloatInc

Sort a float array (ascending).

Synopsis

Prototype
void ajSortFloatInc (
      float* a,
      ajuint n
);

TypeNameRead/WriteDescription
float*aModifyArray of floats to sort
ajuintnInputNumber of elements to sort
void RETURN

Input
n:(Input)Number of elements to sort
Input & Output
a:(Modify)Array of floats to sort
Returns
void:No return value

Description

Sort a float array (ascending).

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSortIntInc

Sort an ajint array (ascending)

Synopsis

Prototype
void ajSortIntInc (
      ajint* a,
      ajuint n
);

TypeNameRead/WriteDescription
ajint*aModifyArray of ints to sort
ajuintnInputNumber of elements to sort
void RETURN

Input
n:(Input)Number of elements to sort
Input & Output
a:(Modify)Array of ints to sort
Returns
void:No return value

Description

Sort an ajint array (ascending)

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajSortUintInc

Sort an unsigned ajuint array (ascending)

Synopsis

Prototype
void ajSortUintInc (
      ajuint* a,
      ajuint n
);

TypeNameRead/WriteDescription
ajuint*aModifyArray of ints to sort
ajuintnInputNumber of elements to sort
void RETURN

Input
n:(Input)Number of elements to sort
Input & Output
a:(Modify)Array of ints to sort
Returns
void:No return value

Description

Sort an unsigned ajuint array (ascending)

See Also

See other functions in this section

Availability

In release 6.4.0