[LinearAlgebra] constexpr if statement when possible (#4352)* [LinearAlgebra] constexpr if statement when possible* Use structured binding