Skip to content

Commit fc741f2

Browse files
authored
Merge pull request #112 from fredrikekre/fe/mapping
Add some docstring cross references
2 parents dd3ac2c + 3acf687 commit fc741f2

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

src/p_sparse_matrix.jl

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ Base.axes(a::PSparseMatrix) = (PRange(a.row_partition),PRange(a.col_partition))
111111
112112
Get a vector of matrices containing the local rows and columns
113113
in each part of `a`.
114+
115+
The row and column indices of the returned matrices can be mapped to global
116+
indices, own indices, ghost indices, and owner by using
117+
[`local_to_global`](@ref), [`local_to_own`](@ref), [`local_to_ghost`](@ref),
118+
and [`local_to_owner`](@ref), respectively.
114119
"""
115120
function local_values(a::PSparseMatrix)
116121
partition(a)
@@ -121,6 +126,10 @@ end
121126
122127
Get a vector of matrices containing the own rows and columns
123128
in each part of `a`.
129+
130+
The row and column indices of the returned matrices can be mapped to global
131+
indices, local indices, and owner by using [`own_to_global`](@ref),
132+
[`own_to_local`](@ref), and [`own_to_owner`](@ref), respectively.
124133
"""
125134
function own_values(a::PSparseMatrix)
126135
map(own_values,partition(a),partition(axes(a,1)),partition(axes(a,2)))
@@ -131,6 +140,10 @@ end
131140
132141
Get a vector of matrices containing the ghost rows and columns
133142
in each part of `a`.
143+
144+
The row and column indices of the returned matrices can be mapped to global
145+
indices, local indices, and owner by using [`ghost_to_global`](@ref),
146+
[`ghost_to_local`](@ref), and [`ghost_to_owner`](@ref), respectively.
134147
"""
135148
function ghost_values(a::PSparseMatrix)
136149
map(ghost_values,partition(a),partition(axes(a,1)),partition(axes(a,2)))
@@ -141,6 +154,14 @@ end
141154
142155
Get a vector of matrices containing the own rows and ghost columns
143156
in each part of `a`.
157+
158+
The *row* indices of the returned matrices can be mapped to global indices,
159+
local indices, and owner by using [`own_to_global`](@ref),
160+
[`own_to_local`](@ref), and [`own_to_owner`](@ref), respectively.
161+
162+
The *column* indices of the returned matrices can be mapped to global indices,
163+
local indices, and owner by using [`ghost_to_global`](@ref),
164+
[`ghost_to_local`](@ref), and [`ghost_to_owner`](@ref), respectively.
144165
"""
145166
function own_ghost_values(a::PSparseMatrix)
146167
map(own_ghost_values,partition(a),partition(axes(a,1)),partition(axes(a,2)))
@@ -151,6 +172,14 @@ end
151172
152173
Get a vector of matrices containing the ghost rows and own columns
153174
in each part of `a`.
175+
176+
The *row* indices of the returned matrices can be mapped to global indices,
177+
local indices, and owner by using [`ghost_to_global`](@ref),
178+
[`ghost_to_local`](@ref), and [`ghost_to_owner`](@ref), respectively.
179+
180+
The *column* indices of the returned matrices can be mapped to global indices,
181+
local indices, and owner by using [`own_to_global`](@ref),
182+
[`own_to_local`](@ref), and [`own_to_owner`](@ref), respectively.
154183
"""
155184
function ghost_own_values(a::PSparseMatrix)
156185
map(ghost_own_values,partition(a),partition(axes(a,1)),partition(axes(a,2)))

src/p_vector.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ Base.axes(a::PVector) = (PRange(a.index_partition),)
175175
176176
Get a vector of vectors containing the local values
177177
in each part of `a`.
178+
179+
The indices of the returned vectors can be mapped to global indices, own
180+
indices, ghost indices, and owner by using [`local_to_global`](@ref),
181+
[`local_to_own`](@ref), [`local_to_ghost`](@ref), and [`local_to_owner`](@ref),
182+
respectively.
178183
"""
179184
function local_values(a::PVector)
180185
partition(a)
@@ -185,6 +190,10 @@ end
185190
186191
Get a vector of vectors containing the own values
187192
in each part of `a`.
193+
194+
The indices of the returned vectors can be mapped to global indices, local
195+
indices, and owner by using [`own_to_global`](@ref), [`own_to_local`](@ref),
196+
and [`own_to_owner`](@ref), respectively.
188197
"""
189198
function own_values(a::PVector)
190199
map(own_values,partition(a),partition(axes(a,1)))
@@ -195,6 +204,10 @@ end
195204
196205
Get a vector of vectors containing the ghost values
197206
in each part of `a`.
207+
208+
The indices of the returned matrices can be mapped to global indices, local
209+
indices, and owner by using [`ghost_to_global`](@ref),
210+
[`ghost_to_local`](@ref), and [`ghost_to_owner`](@ref), respectively.
198211
"""
199212
function ghost_values(a::PVector)
200213
map(ghost_values,partition(a),partition(axes(a,1)))

0 commit comments

Comments
 (0)