mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
get rid of MatrixRef, simplifications.
This commit is contained in:
@@ -6,14 +6,14 @@ template<typename Derived>
|
||||
Eigen::Block<Derived,1,Derived::ColsAtCompileTime>
|
||||
firstRow(MatrixBase<Derived>& m)
|
||||
{
|
||||
return Eigen::Block<Derived,1,Derived::ColsAtCompileTime>(m.asArg(), 0);
|
||||
return Eigen::Block<Derived,1,Derived::ColsAtCompileTime>(m, 0);
|
||||
}
|
||||
|
||||
template<typename Derived>
|
||||
const Eigen::Block<Derived,1,Derived::ColsAtCompileTime>
|
||||
firstRow(const MatrixBase<Derived>& m)
|
||||
{
|
||||
return Eigen::Block<Derived,1,Derived::ColsAtCompileTime>(m.asArg(), 0);
|
||||
return Eigen::Block<Derived,1,Derived::ColsAtCompileTime>(m, 0);
|
||||
}
|
||||
|
||||
int main(int, char**)
|
||||
|
||||
Reference in New Issue
Block a user