Luc,

I'm in your camp, in that I've requested native afl-matrix functions to 
made available, in particular the inverted matrix (see Feedback Centre, 
request # 872):

http://www.amibroker.com/feedback/view_bug.php?bug_id=872

If you & others add their names to the request, we might be able to 
convince TJ to create them.

For the time being, other matrix functions are easier to create via 
VarSet/Get, for example:

////////////////////////////////////////////////////////////////////////
////
// Matrix Functions via VarSet/VarGet

function SetMatrix( Mname, x, y, value )// x, y can be any dimension
{
VarSet( Mname + StrFormat("%05.0f%05.0f", x, y ), value );
}

function GetMatrix( Mname, x, y )
{
return VarGet( Mname + StrFormat("%05.0f%05.0f", x, y ) );
}

function SetIDMatrix( Mname, Range)// Square Matrix
{
        for (x=0; x<Range; x++)
        {
                for (y=0; y<Range; y++) 
                {
                        if (x==y) VarSet( Mname + StrFormat("%05.0f%
05.0f", x, y ), 1 );
                        else VarSet( Mname + StrFormat("%05.0f%05.0f", 
x, y ), 0 );
                }
        }
}

PS

--- In [email protected], "luchetta" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I am new to AFL, and I am trying to figure out how to use matrices in 
> Amibroker. In particular, could anyone point me to a code for 
inverting 
> a matrix?
> 
> Thank you very much!
> 
> Luc
>


Reply via email to