I need this global matrix: Public MatRigGlo[12, 12] As Float
that in some cases it needs to be [3,3] or [6,6] I pass that matrix to a C library: Public Extern M8simetrizarSQ(matriz As Float[], lOrden As Long) and the call is M8simetrizarSQ(MatRigGlo, 12) wich works perfectly. But its ineficient because if matrix is 3x3, the routine still need to process it like 12x12, and that matrix it's filled like 1M times. Will it work like this? Public Mat3[3,3] as Float Public Mat12[12,12] as Float Public MatRigGlo as Float[] ' Module MatrigGlo = Mat3 and the use MatRigGlo like a 3x3 matrix? wich other ways to do this? tnx ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user