repo.or.cz
/
Math-GSL.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* Adding the overloading operator for the addition of vector and a tests for it
[Math-GSL.git]
/
examples
/
gsl_sort
blob
a8d1182d660f034d3853d78a0aab0380095d3e42
1
#!/usr/bin/perl -w
2
use
strict
;
3
use
Math
::
GSL
::
Sort qw
/gsl_sort/
;
4
my
@lines
;
5
push
@lines
,
$_
while
(<>);
6
7
my
$sorted
=
gsl_sort
(
\
@lines
,
1
,
$#lines
+
1
);
8
print join
(
"
\n
"
,
@
$sorted
) .
"
\n
"
;