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>
33 vect(const int size, TYPE *vec_data);
34 vect(const vect<TYPE>& v);
37 vect<TYPE> operator =(const vect<TYPE>& v);
39 template<typename T> friend ostream& operator << (ostream& dout,
41 template<typename T> friend vect<T> operator +(const vect<T> v1,
43 template<typename T> friend vect<T> operator +(const vect<T> v,
45 template<typename T> friend vect<T> operator -(const vect<T> v1,
47 template<typename T> friend vect<T> operator -(const vect<T> v,
49 template<typename T> friend matrix<T> operator *(const matrix<T> v1,
51 template<typename T> friend vect<T> operator *(const vect<T> v,
53 template<typename T> friend vect<T> operator *(const vect<T> v,
55 template<typename T> friend vect<T> operator /(const vect<T> v1,
57 template<typename T> friend bool operator ==(const vect<T> v1,
59 template<typename T> friend bool operator !=(const vect<T> v1,
62 template<typename T> friend T mul(const vect<T> v, const matrix<T> m);
63 template<typename T> friend void insert_end(vect<T>& v, T val);
64 template<typename T> friend matrix<T> transpose(const vect<T> v);
65 template <typename T> friend vect<T> transpose(const matrix<T> m);
66 template<typename T> friend vect<T> cross(const vect<T> v1,
68 template <typename T> friend T var(const vect<T> v);
69 template <typename T> friend bool is_initialized(const vect<T> v);
74 #endif /* _VECTOR_H */