|
From: Ben S. <bs...@ga...> - 2003-09-23 18:25:08
|
> Sounds like a good idea to me. I would think a GetColumn and a GetRow > method would be helpful. > > As far as where to put it, we could make it a gmtl method. Something > like: > > gmtl::getColumn(unsigned col, Matrix& mat, Vec& vec) > > and/or > > Vec gmtl::getColumn(unsigned col, Matrix& mat) > > What do you guys think? I've currently got it written last night as: void setColumn(Vec& vec, const Matrix& mat, unsigned col); Vec makeColumn(const Matrix& mat, unsigned col); I've also written row equivalents. They're just waiting to be committed. cheers, -Ben |