4 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
25 template <typename TYPE>
32 vector(const int size);
33 vector(const int size, TYPE *vec_data);
34 vector(const vector<TYPE>& v);
37 vector<TYPE> operator =(const vector<TYPE>& v);
39 template<typename T> friend ostream& operator << (ostream& dout,
41 template<typename T> friend vector<T> operator +(const vector<T> v1,
43 template<typename T> friend vector<T> operator +(const vector<T> v,
45 template<typename T> friend vector<T> operator -(const vector<T> v1,
47 template<typename T> friend vector<T> operator -(const vector<T> v,
49 template<typename T> friend matrix<T> operator *(const matrix<T> v1,
51 template<typename T> friend vector<T> operator *(const vector<T> v,
53 template<typename T> friend vector<T> operator *(const vector<T> v,
55 template<typename T> friend vector<T> operator /(const vector<T> v1,
57 template<typename T> friend bool operator ==(const vector<T> v1,
59 template<typename T> friend bool operator !=(const vector<T> v1,
62 template<typename T> friend T mul(const vector<T> v, const matrix<T> m);
63 template<typename T> friend void insert_end(vector<T>& v, T val);
64 template<typename T> friend matrix<T> transpose(const vector<T> v);
65 template <typename T> friend vector<T> transpose(const matrix<T> m);
66 template<typename T> friend vector<T> cross(const vector<T> v1,
68 template <typename T> friend T var(const vector<T> v);
69 template <typename T> friend bool is_initialized(const vector<T> v);
74 #endif /* _VECTOR_H */