The marker interface is definitely the best way to make this a runtime
affair. Attempting to do this with methods will be very messy. One can
imagine testing a string of calls like isSymmetric(), isDiagonal(),
isBanded()... Furthermore, making use of overloading would not be possible.

Reply via email to