Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
starfinder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Laura Schreiber
starfinder
Commits
f8cb2964
Commit
f8cb2964
authored
1 month ago
by
Laura Schreiber
Browse files
Options
Downloads
Patches
Plain Diff
Upload missing File
parent
e9bbd30d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
append_elements.pro
+41
-0
41 additions, 0 deletions
append_elements.pro
with
41 additions
and
0 deletions
append_elements.pro
0 → 100644
+
41
−
0
View file @
f8cb2964
;
$
Id
:
append_elements
.
pro
,
v
1.0
Aug
1999
e
.
d
.
$
;
;
+
;
NAME
:
;
APPEND_ELEMENTS
;
;
PURPOSE
:
;
Append
new
elements
to
1
D
vector
.
;
;
CATEGORY
:
;
Array
manipulation
.
;
;
CALLING
SEQUENCE
:
;
Result
=
APPEND_ELEMENTS
(
V
,
Elements
)
;
;
INPUTS
:
;
Vector
:
input
vector
;
;
Elements
:
Scalar
or
vector
,
representing
element
(
s
)
to
be
appended
;
;
OUTPUTS
:
;
Results
:
Input
array
with
appended
elements
;
;
RESTRICTIONS
:
;
Apply
only
to
1
D
vectors
or
scalars
.
;
;
MODIFICATION
HISTORY
:
;
Written
by
:
Emiliano
Diolaiti
,
August
1999
.
;
-
FUNCTION
append_elements
,
v
,
elements
on_error
,
2
n
=
n_elements
(
v
)
if
n
eq
0
then
return
,
elements
if
size
(
v
,
/
N_DIM
)
gt
1
or
$
size
(
elements
,
/
N_DIM
)
gt
1
then
return
,
elements
v_and_el
=
make_array
(
n
+
n_elements
(
elements
),
TYPE
=
size
(
v
,
/
TYPE
))
v_and_el
[
0
]
=
v
&
v_and_el
[
n
]
=
elements
return
,
v_and_el
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment