[Gambas-user] Matrices byref
martin p cristia
tercoide at ...67...
Fri Jan 17 00:15:03 CET 2014
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
More information about the User
mailing list