On 11/23/12 6:04 PM, Marcus Brubaker wrote:
> Is anyone currently looking at this? If not, I may take some time to look at it over the next week.
That'd be great.
Daniel's been working on vectorizations, but
he's traveling for the next week.
We have discussed what needs to be done in general, which is
creating MatrixView and TensorView expression templates along the
same lines as VectorView (and DoubleVectorView):
VectorView : T or T[] as T[]
MatrixView : T[] or T[,] as T[,]
TensorView : T[,] or T[,,] as T[,,]
How much array processing should be built in? I ask because
there are three ways to shape a vector:
vector<T>
Eigen::Matrix<T,Dynamic,1>
Eigen::Matrix<T,1,Dynamic>
four ways to shape a matrix:
vector<vector<T> >
vector<Eigen::Matrix<T,Dynamic,1> >
vector<Eigen::Matrix<T,1,Dynamic> >
Eigen::Matrix<T,Dynamic,Dynamic>
and four ways to shape a tensor:
vector<vector<vector<T> > >
vector<vector<Eigen::Matrix<T,Dynamic,1> > >
vector<vector<Eigen::Matrix<T,1,Dynamic> > >
vector<Eigen::Matrix<T,Dynamic,Dynamic> >
- Bob