diff options
author | Alberto Ruiz <aruiz@um.es> | 2014-06-11 13:52:44 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2014-06-11 13:52:44 +0200 |
commit | 4403c176938a990f51762a48e95d1f03a11adc4e (patch) | |
tree | 64523212f93fbff6c14f51099e8c0aeea7b77a46 /packages/base/src/C | |
parent | 641ee77e6d41cc7f6b1f883b4834164a93bbb306 (diff) |
roundVector
Diffstat (limited to 'packages/base/src/C')
-rw-r--r-- | packages/base/src/C/vector-aux.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/base/src/C/vector-aux.c b/packages/base/src/C/vector-aux.c index b176089..efb82af 100644 --- a/packages/base/src/C/vector-aux.c +++ b/packages/base/src/C/vector-aux.c | |||
@@ -783,3 +783,13 @@ int sort_values(KDVEC(v),DVEC(r)) { | |||
783 | OK | 783 | OK |
784 | } | 784 | } |
785 | 785 | ||
786 | //////////////////////////////////////////////////////////////////////////////// | ||
787 | |||
788 | int round_vector(KDVEC(v),DVEC(r)) { | ||
789 | int k; | ||
790 | for(k=0; k<vn; k++) { | ||
791 | rp[k] = round(vp[k]); | ||
792 | } | ||
793 | OK | ||
794 | } | ||
795 | |||