Vector();
Vector(const T *);
+
+ /** Constructs a vector from an array of interleaved values. Intended for
+ use by Matrix row accessor. */
+ Vector(const T *, unsigned);
+
Vector(T, T);
Vector(T, T, T);
Vector(T, T, T, T);
(*this)[i] = d[i];
}
+template<typename T, unsigned N>
+inline Vector<T, N>::Vector(const T *d, unsigned stride)
+{
+ for(unsigned i=0; i<N; ++i)
+ (*this)[i] = d[i*stride];
+}
+
/* The compiler won't instantiate these unless they are used. Trying to use
them on the wrong class results in an error. */
template<typename T, unsigned N>