ADS
Algorithms and Data Structures
Toggle main menu visibility
Loading...
Searching...
No Matches
VectorIntersection.h
Go to the documentation of this file.
1
/*--------------------------------------------------------------------------*/
2
/*------------------------ File VectorIntersection.h -----------------------*/
3
/*--------------------------------------------------------------------------*/
75
/*--------------------------------------------------------------------------*/
76
/*----------------------------- DEFINITIONS --------------------------------*/
77
/*--------------------------------------------------------------------------*/
78
79
#ifndef __ADS_VectorIntersection
80
#define __ADS_VectorIntersection
81
/* self-identification: #endif constant */
82
83
/*--------------------------------------------------------------------------*/
84
/*------------------------------ INCLUDES ----------------------------------*/
85
/*--------------------------------------------------------------------------*/
86
87
#include "
ADS/Contract.h
"
88
#include "
ADS/Simd.h
"
89
90
#include <cstddef>
91
#include <vector>
92
93
/*--------------------------------------------------------------------------*/
94
/*--------------------------- NAMESPACE ------------------------------------*/
95
/*--------------------------------------------------------------------------*/
96
97
namespace
ADS
98
{
99
125
template
<
class
T >
126
std::size_t
intersect
(
const
T * a , std::size_t n ,
const
T * b ,
127
std::size_t m ,
128
T * out );
129
142
template
<
class
T >
143
std::vector< T >
intersect
(
const
std::vector< T > & A ,
144
const
std::vector< T > & B );
145
146
/*--------------------------------------------------------------------------*/
147
148
}
// end( namespace ADS )
149
150
/*--------------------------------------------------------------------------*/
151
/*-------------------------- IMPLEMENTATION --------------------------------*/
152
/*--------------------------------------------------------------------------*/
153
154
#include "ADS/set/impl/VectorIntersection.tpp"
155
156
/*--------------------------------------------------------------------------*/
157
158
#endif
/* VectorIntersection.h included */
159
160
/*--------------------------------------------------------------------------*/
161
/*---------------------- End File VectorIntersection.h ---------------------*/
162
/*--------------------------------------------------------------------------*/
Contract.h
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
Simd.h
The vector kernels of ADS on Google Highway, with ADS_WITH_HIGHWAY: the loops over arrays that a stru...
ADS::intersect
std::size_t intersect(const T *a, std::size_t n, const T *b, std::size_t m, T *out)
the items common to and , written to out, and their number
ADS
Definition
ADT.h:96
ADS
set
VectorIntersection.h
Generated by
1.17.0