Registered Member
|
Hello!
I am trying to take the lpNorm<1> of a matrix in a function that takes a MatrixBase argument. For some reason, it gives me a syntax error, but works fine if I make the argument a concrete matrix type instead. Any idea why that may be? Smallest compilable code (this is OK) -
This gives me a syntax error:
Many thanks! EDIT: AH I figured it out. Need to use "template" keyword for disambiguation. Leaving this here for Googlers' benefit.
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]