c++ Programming Glossary: isequal
How to implement Matlab's mldivide (a.k.a. the backslash operator “\”) http://stackoverflow.com/questions/18553210/how-to-implement-matlabs-mldivide-a-k-a-the-backslash-operator A is a full matrix if size A 1 size A 2 A is square if isequal A tril A A is lower triangular x A b This is a simple forward.. x A b This is a simple forward substitution on b elseif isequal A triu A A is upper triangular x A b This is a simple backward.. x A b This is a simple backward substitution on b else if isequal A A' A is symmetric R p chol A if p 0 A is symmetric positive..
Compile-time assert for string equality http://stackoverflow.com/questions/5721813/compile-time-assert-for-string-equality being considered to make the spec allow it. constexpr bool isequal char const one char const two return one two one two isequal.. char const one char const two return one two one two isequal one 1 two 1 one two static_assert isequal foo foo this should.. one two one two isequal one 1 two 1 one two static_assert isequal foo foo this should never fail static_assert isequal foo bar..
|