ONE - On-device Neural Engine
Loading...
Searching...
No Matches
vector.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
22
#ifndef __NNFW_MISC_VECTOR_H__
23
#define __NNFW_MISC_VECTOR_H__
24
25
#include <vector>
26
34
template
<
typename
T>
bool
operator==
(
const
std::vector<T> &lhs,
const
std::vector<T> &rhs)
35
{
36
if
(lhs.size() != rhs.size())
37
{
38
return
false
;
39
}
40
41
for
(
size_t
ind = 0; ind < lhs.size(); ++ind)
42
{
43
if
(lhs.at(ind) != rhs.at(ind))
44
{
45
return
false
;
46
}
47
}
48
49
return
true
;
50
}
51
52
#endif
// __NNFW_MISC_VECTOR_H__
operator==
bool operator==(const std::vector< T > &lhs, const std::vector< T > &rhs)
Compare elements of two vectors.
Definition
vector.h:34
runtime
libs
misc
include
misc
vector.h
Generated by
1.9.8