Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Sorting2 #408

Merged
merged 51 commits into from
Jun 3, 2021
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
0031f74
Start the addition of the module stdlib_sorting
wclodius2 Apr 11, 2021
56fd86f
Removed trailing whitespace
wclodius2 Apr 11, 2021
9b28d8f
Added stdlib_sorting to the index
wclodius2 Apr 11, 2021
f294422
Incorproated suggestions by Jeremie Vandenplas
wclodius2 Apr 13, 2021
28afb18
Added sorting for character(*) and string_type
wclodius2 Apr 21, 2021
5727398
Commited main sorting files
wclodius2 Apr 23, 2021
bc3d652
Commited files related to testing the sorting procedures.
wclodius2 Apr 23, 2021
cb2f0d8
Commited the revised stdlib/doc/specs/stdlib_sorting.md
wclodius2 Apr 23, 2021
d84da28
Fixed an off by one error in an array assignment
wclodius2 Apr 24, 2021
b2a2149
Fixed improperly assumed short circuiting.
wclodius2 Apr 24, 2021
4280f3e
Fixed documentation problems noted by gareth_nx
wclodius2 Apr 30, 2021
62c6781
Commited final edit
wclodius2 Apr 30, 2021
0a73bbc
Fixed misspellings
wclodius2 Apr 30, 2021
a0a5d0c
Commit modified index.md
wclodius2 May 2, 2021
b45441b
Added changes suggested by gareth-nx.
wclodius2 May 2, 2021
7087255
Update src/stdlib_sorting.fypp
wclodius2 May 9, 2021
6f0f189
Update src/stdlib_sorting.fypp
wclodius2 May 9, 2021
7c8ed79
Update src/stdlib_sorting.fypp
wclodius2 May 9, 2021
8b9be81
Commited suggestions by jvdp1
wclodius2 May 9, 2021
e6a376f
Merge branch 'SortingStdlibPullRequest' into sorting2
wclodius2 May 12, 2021
abf10c6
Implemented changes suggested by Jeremie
wclodius2 May 20, 2021
e8d80de
simplifies code by adding fypp variables
jvdp1 May 20, 2021
5a9ccff
simplifies code by adding fypp variables
jvdp1 May 20, 2021
c3128ac
sorting_sort: add fypp variable for simplifying code
jvdp1 May 20, 2021
450247e
sort_index: add fypp variable to reduce code size
jvdp1 May 20, 2021
b7d79af
fix issue
jvdp1 May 20, 2021
30fda42
sort_index: add fypp variable for code simplifications
jvdp1 May 20, 2021
f26a47b
sort: add fypp variable for code simplifications + fix typo
jvdp1 May 20, 2021
3f8bea7
fix typo
jvdp1 May 20, 2021
4b16aca
ord_sort: add fypp variable to reduce code
jvdp1 May 20, 2021
e836175
Merge pull request #1 from jvdp1/sorting_fypp_proposition_2
wclodius2 May 21, 2021
84f1294
Update src/stdlib_sorting.fypp
wclodius2 May 23, 2021
8d91761
Update doc/specs/stdlib_sorting.md
wclodius2 May 23, 2021
6ccd366
Update src/stdlib_sorting_sort.fypp
wclodius2 May 23, 2021
8e59d2f
Changed intent of arguments from inout to out
wclodius2 May 24, 2021
6e77312
add reverse to sort
jvdp1 May 28, 2021
40e084e
sort_sign: add reverse in ord_sort
jvdp1 May 28, 2021
940b6fc
sort_sign: add checks (error stop) to all tests
jvdp1 May 28, 2021
df150f2
sort_sign: remove module subroutines when inappropriate
jvdp1 May 28, 2021
41b8b8e
sort_sign: add init ltest
jvdp1 May 28, 2021
5a6f463
Merge pull request #2 from jvdp1/sort_sign
wclodius2 May 29, 2021
6c4d3e2
update specs
jvdp1 May 29, 2021
18ad979
sort_sign: removed bold sentences
jvdp1 May 30, 2021
1c6e985
Merge pull request #3 from jvdp1/sort_sign
wclodius2 May 30, 2021
933837a
Corrected doc/specs/incex,md
wclodius2 May 31, 2021
de03c1d
update of the comments in source code
jvdp1 May 31, 2021
720a0cd
fixed typo
jvdp1 May 31, 2021
70e13f8
Merge pull request #4 from jvdp1/sort_sign
wclodius2 May 31, 2021
8fc4f67
add checks
jvdp1 Jun 1, 2021
25876b7
changes following wclodius2
jvdp1 Jun 1, 2021
1fc5cd9
Merge pull request #5 from jvdp1/add_checks1
wclodius2 Jun 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed misspellings
Review-dog caught several misspellings in the comments of the source codes.

[ticket: X]
  • Loading branch information
wclodius2 committed Apr 30, 2021
commit 0a73bbc994dfc99a70777fa41be007d14d5c8819
4 changes: 2 additions & 2 deletions src/stdlib_sorting.fypp
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@
!! option. This file may not be copied, modified, or distributed
!! except according to those terms.
!!
!! so the licence for the original`slice.rs` code is compatible with the use
!! so the license for the original`slice.rs` code is compatible with the use
!! of modified versions of the code in the Fortran Standard Library under
!! the MIT license.
!!
@@ -221,7 +221,7 @@ module stdlib_sorting
!!
!! The generic subroutine implementing the `SORT_INDEX` algorithm to
!! return an index array whose elements would sort the input array in the
!! desired direction. It is primarilly intended to be used to sort a
!! desired direction. It is primarily intended to be used to sort a
!! derived type array based on the values of a component of the array.
!! Its use has the syntax:
!!
10 changes: 5 additions & 5 deletions src/stdlib_sorting_ord_sort.fypp
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@
!! option. This file may not be copied, modified, or distributed
!! except according to those terms.
!!
!! so the licence for the original`slice.rs` code is compatible with the use
!! so the license for the original`slice.rs` code is compatible with the use
!! of modified versions of the code in the Fortran Standard Library under
!! the MIT license.

@@ -73,7 +73,7 @@ contains
! a hybrid sorting algorithm combining an iterative Merge sort controlled
! by a stack of `RUNS` identified by regions of uniformly decreasing or
! non-decreasing sequences that may be expanded to a minimum run size and
! initialy processed by an insertion sort.
! initially processed by an insertion sort.
!
! Note the Fortran implementation simplifies the logic as it only has to
! deal with Fortran arrays of intrinsic types and not the full generality
@@ -414,7 +414,7 @@ contains
! a hybrid sorting algorithm combining an iterative Merge sort controlled
! by a stack of `RUNS` identified by regions of uniformly decreasing or
! non-decreasing sequences that may be expanded to a minimum run size and
! initialy processed by an insertion sort.
! initially processed by an insertion sort.
!
! Note the Fortran implementation simplifies the logic as it only has to
! deal with Fortran arrays of intrinsic types and not the full generality
@@ -753,7 +753,7 @@ contains
! a hybrid sorting algorithm combining an iterative Merge sort controlled
! by a stack of `RUNS` identified by regions of uniformly decreasing or
! non-decreasing sequences that may be expanded to a minimum run size and
! initialy processed by an insertion sort.
! initially processed by an insertion sort.
!
! Note the Fortran implementation simplifies the logic as it only has to
! deal with Fortran arrays of intrinsic types and not the full generality
@@ -1091,7 +1091,7 @@ contains
! a hybrid sorting algorithm combining an iterative Merge sort controlled
! by a stack of `RUNS` identified by regions of uniformly decreasing or
! non-decreasing sequences that may be expanded to a minimum run size and
! initialy processed by an insertion sort.
! initially processed by an insertion sort.
!
! Note the Fortran implementation simplifies the logic as it only has to
! deal with Fortran arrays of intrinsic types and not the full generality
2 changes: 1 addition & 1 deletion src/stdlib_sorting_sort_index.fypp
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@
!! option. This file may not be copied, modified, or distributed
!! except according to those terms.
!!
!! so the licence for the original`slice.rs` code is compatible with the use
!! so the license for the original`slice.rs` code is compatible with the use
!! of modified versions of the code in the Fortran Standard Library under
!! the MIT license.