source: trunk/FACT++/sofa/src/sxp.c@ 18368

Last change on this file since 18368 was 18346, checked in by tbretz, 11 years ago
File size: 4.9 KB
Line 
1#include "sofa.h"
2
3void iauSxp(double s, double p[3], double sp[3])
4/*
5** - - - - - - -
6** i a u S x p
7** - - - - - - -
8**
9** Multiply a p-vector by a scalar.
10**
11** This function is part of the International Astronomical Union's
12** SOFA (Standards Of Fundamental Astronomy) software collection.
13**
14** Status: vector/matrix support function.
15**
16** Given:
17** s double scalar
18** p double[3] p-vector
19**
20** Returned:
21** sp double[3] s * p
22**
23** Note:
24** It is permissible for p and sp to be the same array.
25**
26** This revision: 2013 June 18
27**
28** SOFA release 2015-02-09
29**
30** Copyright (C) 2015 IAU SOFA Board. See notes at end.
31*/
32{
33 sp[0] = s * p[0];
34 sp[1] = s * p[1];
35 sp[2] = s * p[2];
36
37 return;
38
39/*----------------------------------------------------------------------
40**
41** Copyright (C) 2015
42** Standards Of Fundamental Astronomy Board
43** of the International Astronomical Union.
44**
45** =====================
46** SOFA Software License
47** =====================
48**
49** NOTICE TO USER:
50**
51** BY USING THIS SOFTWARE YOU ACCEPT THE FOLLOWING SIX TERMS AND
52** CONDITIONS WHICH APPLY TO ITS USE.
53**
54** 1. The Software is owned by the IAU SOFA Board ("SOFA").
55**
56** 2. Permission is granted to anyone to use the SOFA software for any
57** purpose, including commercial applications, free of charge and
58** without payment of royalties, subject to the conditions and
59** restrictions listed below.
60**
61** 3. You (the user) may copy and distribute SOFA source code to others,
62** and use and adapt its code and algorithms in your own software,
63** on a world-wide, royalty-free basis. That portion of your
64** distribution that does not consist of intact and unchanged copies
65** of SOFA source code files is a "derived work" that must comply
66** with the following requirements:
67**
68** a) Your work shall be marked or carry a statement that it
69** (i) uses routines and computations derived by you from
70** software provided by SOFA under license to you; and
71** (ii) does not itself constitute software provided by and/or
72** endorsed by SOFA.
73**
74** b) The source code of your derived work must contain descriptions
75** of how the derived work is based upon, contains and/or differs
76** from the original SOFA software.
77**
78** c) The names of all routines in your derived work shall not
79** include the prefix "iau" or "sofa" or trivial modifications
80** thereof such as changes of case.
81**
82** d) The origin of the SOFA components of your derived work must
83** not be misrepresented; you must not claim that you wrote the
84** original software, nor file a patent application for SOFA
85** software or algorithms embedded in the SOFA software.
86**
87** e) These requirements must be reproduced intact in any source
88** distribution and shall apply to anyone to whom you have
89** granted a further right to modify the source code of your
90** derived work.
91**
92** Note that, as originally distributed, the SOFA software is
93** intended to be a definitive implementation of the IAU standards,
94** and consequently third-party modifications are discouraged. All
95** variations, no matter how minor, must be explicitly marked as
96** such, as explained above.
97**
98** 4. You shall not cause the SOFA software to be brought into
99** disrepute, either by misuse, or use for inappropriate tasks, or
100** by inappropriate modification.
101**
102** 5. The SOFA software is provided "as is" and SOFA makes no warranty
103** as to its use or performance. SOFA does not and cannot warrant
104** the performance or results which the user may obtain by using the
105** SOFA software. SOFA makes no warranties, express or implied, as
106** to non-infringement of third party rights, merchantability, or
107** fitness for any particular purpose. In no event will SOFA be
108** liable to the user for any consequential, incidental, or special
109** damages, including any lost profits or lost savings, even if a
110** SOFA representative has been advised of such damages, or for any
111** claim by any third party.
112**
113** 6. The provision of any version of the SOFA software under the terms
114** and conditions specified herein does not imply that future
115** versions will also be made available under the same terms and
116** conditions.
117*
118** In any published work or commercial product which uses the SOFA
119** software directly, acknowledgement (see www.iausofa.org) is
120** appreciated.
121**
122** Correspondence concerning SOFA software should be addressed as
123** follows:
124**
125** By email: sofa@ukho.gov.uk
126** By post: IAU SOFA Center
127** HM Nautical Almanac Office
128** UK Hydrographic Office
129** Admiralty Way, Taunton
130** Somerset, TA1 2DN
131** United Kingdom
132**
133**--------------------------------------------------------------------*/
134}
Note: See TracBrowser for help on using the repository browser.