25 #ifndef FIBER_IDENTITY_H_
26 #define FIBER_IDENTITY_H_
31 template <
typename Scalar,
int N>
55 assert(i < N && j < N);
56 return (i == j) ? Scalar(1.0) : Scalar(0.0);
70 #endif // FIBER_IDENTITY_H_
expression template for rvalues
Scalar operator[](Index i) const
vector accessor
Scalar operator()(int i, int j) const
matrix accessor
A N x N matrix expression for the identity matrix.