Overloading hypermatrix operations
Reported by Alain Lamy
BUG DESCRIPTION:
----------------
In CelestLab, we define/redefine some hypermatrix operations:
Hypermatrix transpose: %hm_t
Hypermatrix * Hypermatrix: %hm_m_hm
Hypermatrix * Matrix: %hm_m_s
That's a major point as lots of functions depend on these definitions.
With Scilab 6 (where hypermatrices are now "constant"):
1) Hypermatrix transpose
-->rand(2,2,2)'
Fonction non définie pour le type d'argument donné,
Vérifier les arguments ou définir la fonction %s_t pour la surcharge.
=> OK: can be overloaded
2) Hypermatrix * Hypermatrix
-->rand(2,2,2) * rand(2,2,2)
Dimensions rangée/colonne incohérentes.
=> PROBLEM: cannot be overloaded
3) Hypermatrix * Matrix
-->rand(2,2,2) * rand(2,2)
Dimensions rangée/colonne incohérentes.
=> PROBLEM: cannot be overloaded
That's terribly critical and I can't think of any easy workaround.
I hope the problem is only temporary.
Suggestion:
Call user overloaded functions (%s_op_s...) when there is no default definition.
(as it is the case for the "transpose" operation).
OTHER INFORMATION:
------------------
version used: scilab-branch-YaSp-1432904838