Sorry it took so long, but I am just getting back to this. So, if Matrix
is two dimensional and any() and all() reduce the order by one, then why
do they return a Matrix? ColumnVector and RowVector are the one
dimensional counterparts. I would then think that ColumnVector any() or
all() would reduce to a scalar (boolean actually). However, there is no
any() or all() for {Column,Row}Vector. So, I have to do something like:
ColumnVector c;
...
c = ...;
if ((Matrix(c) < SomeDelta).bool_matrix_value().any()(0,0))
{
...do something significant maybe...
}
The point here being I have no idea if the conditional in the C++ if
statement is the same as my m-file of 'if (any(c < SomeDelta))'. There
is nothing in any header file in the include/octave... directory that
helps to clear it up. It does compile, so we will see.
Thanks for the help.