ifw-odp 5.0.0
Loading...
Searching...
No Matches
clipm_priv_vector.h
Go to the documentation of this file.
1
2/*********************************************************************
3 * E.S.O. - VLT project
4 *
5 * "@(#) $Id: clipm_priv_vector.h 261995 2014-11-21 16:14:51Z cgarcia $"
6 *
7 * PRIVATE functions for vector handling
8 *
9 * who when what
10 * -------- ---------- ----------------------------------------------
11 * hlorch 2007-04-27 created
12 */
13
14#ifndef CLIPM_PRIV_VECTOR_H
15#define CLIPM_PRIV_VECTOR_H
16
17/*-----------------------------------------------------------------------------
18 Includes
19 -----------------------------------------------------------------------------*/
20
21#include <cpl.h>
22
23/*-----------------------------------------------------------------------------
24 Declaration Block
25 -----------------------------------------------------------------------------*/
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/*-----------------------------------------------------------------------------
32 Prototypes
33 -----------------------------------------------------------------------------*/
34
35double clipm_priv_vector_get_min( const cpl_vector *v,
36 cpl_size *index);
37
38double clipm_priv_vector_get_max( const cpl_vector *v,
39 cpl_size *index);
40
41cpl_vector *clipm_priv_vector_expand( const cpl_vector *v,
42 cpl_size prepend_nr,
43 cpl_size append_nr);
44
46 const cpl_vector *v);
47
49 const cpl_vector *v);
50
52 const cpl_vector **dv);
53
54void clipm_priv_vector_null( cpl_vector **v);
55
56/*----------------------------------------------------------------------------*/
57
58#ifdef __cplusplus
59} /* extern "C" */
60#endif
61
62#endif /* CLIPM_PRIV_VECTOR_H */
cpl_vector * clipm_priv_vector_expand(const cpl_vector *v, cpl_size prepend_nr, cpl_size append_nr)
Prepend and append borderwidth 0-elements to v, respectively.
Definition clipm_priv_vector.c:168
cpl_vector * clipm_priv_vector_get_normal(const cpl_vector **dv)
Get the n-dimensional normal vector to n-1 direction vectors.
Definition clipm_priv_vector.c:345
void clipm_priv_vector_null(cpl_vector **v)
Delete a CPL vector object and set the pointer to NULL.
Definition clipm_priv_vector.c:462
cpl_vector * clipm_priv_vector_differentiate(const cpl_vector *v)
Differentiate a signal stored in a vector.
Definition clipm_priv_vector.c:274
cpl_vector * clipm_priv_vector_integrate(const cpl_vector *v)
Integrate a signal stored in a vector.
Definition clipm_priv_vector.c:227
double clipm_priv_vector_get_min(const cpl_vector *v, cpl_size *index)
Return minimum and corresponding index of a vector.
Definition clipm_priv_vector.c:56
double clipm_priv_vector_get_max(const cpl_vector *v, cpl_size *index)
Return maximum and corresponding index of a vector.
Definition clipm_priv_vector.c:110