linalg 1.8.2
A linear algebra library that provides a user-friendly interface to several BLAS and LAPACK routines.
|
Sorts an array. More...
Public Member Functions | |
sort_dbl_array | |
sort_dbl_array_ind | |
sort_cmplx_array | |
sort_cmplx_array_ind | |
sort_eigen_cmplx | |
sort_eigen_dbl | |
sort_int32_array | |
sort_int32_array_ind | |
Sorts an array.
[in,out] | x | On input, the array to sort. On output, the sorted array. |
[in] | ascend | An optional input that, if specified, controls if the the array is sorted in an ascending order (default), or a descending order. |
[in,out] | x | On input, the array to sort. On output, the sorted array. |
[in,out] | ind | On input, an integer array. On output, the contents of this array are shifted in the same order as that of x as a means of tracking the sorting operation. It is often useful to set this array to an ascending group of values (1, 2, ... n) such that this array tracks the original positions of the sorted array. Such an array can then be used to align other arrays. This array must be the same size as x . |
[in] | ascend | An optional input that, if specified, controls if the the array is sorted in an ascending order (default), or a descending order. |
[in,out] | err | An optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
|
[in,out] | vals | On input, an N-element array containing the eigenvalues. On output, the sorted eigenvalues. |
[in,out] | vecs | On input, an N-by-N matrix containing the eigenvectors associated with vals (one vector per column). On output, the sorted eigenvector matrix. |
[in] | ascend | An optional input that, if specified, controls if the the array is sorted in an ascending order (default), or a descending order. |
[in,out] | err | An optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
|
Definition at line 3454 of file linalg.f90.