30 use precisn_gbl,
only: wp
35 procedure find_column_i
36 procedure find_column_c
40 procedure append_column_i
41 procedure append_column_c
48 integer,
allocatable,
intent(in) :: table(:, :)
49 integer,
intent(in) :: column(:)
54 if (
allocated(table))
then
55 do icol = 1,
size(table, 2)
56 if (all(table(:, icol) == column(:)))
then
68 complex(wp),
allocatable,
intent(in) :: table(:, :)
69 complex(wp),
intent(in) :: column(:)
74 if (
allocated(table))
then
75 do icol = 1,
size(table, 2)
76 if (all(table(:, icol) == column(:)))
then
88 integer,
allocatable,
intent(inout) :: table(:, :)
89 integer,
intent(in) :: column(:)
90 integer,
allocatable :: old_table(:, :)
94 if (.not.
allocated(table))
then
96 allocate (table(m, n))
97 table(:, n) = column(:)
99 call move_alloc(table, old_table)
100 n = 1 +
size(old_table, 2)
101 allocate (table(m, n))
102 table(:, 1:n-1) = old_table(:, :)
103 table(:, n) = column(:)
111 complex(wp),
allocatable,
intent(inout) :: table(:, :)
112 complex(wp),
intent(in) :: column(:)
113 complex(wp),
allocatable :: old_table(:, :)
117 if (.not.
allocated(table))
then
119 allocate (table(m, n))
120 table(:, n) = column(:)
122 n = 1 +
size(table, 2)
123 call move_alloc(table, old_table)
124 allocate (table(m, n))
125 table(:, 1:n-1) = old_table(:, :)
126 table(:, n) = column(:)
integer function find_column_i(table, column)
integer function append_column_i(table, column)
integer function find_column_c(table, column)
integer function append_column_c(table, column)