Matrix::BlockFinish Method

void BlockFinish() const;

Deinitializes block processing before the final block is processed.

Remarks:

Call this routine before breaking out of a while-loop prematurely.

Vec.BlockInit
While not Vec.BlockEnd do
Begin
    If Vec.Min < 0 then //check some condition, if you need to exit
    begin
      Vec.BlockFinish;  //finish the loop
      Break;  //and break out
    end;
    Vec.BlockNext;
end
Examples
#include "MtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    Matrix Vec;
    Vector v(10000);

    v.Ramp(5000, -1);
    Vec.CopyVec(v, 100);
    Vec.BlockInit();
    while (!Vec.BlockEnd)
    {
        if (Vec.Min() < 0) //check some condition, if you need to exit
        {
            Vec.BlockFinish();  //finish the loop
            break;  //and break out
        }
        Vec.BlockNext();
    }
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler