TWiki . Octave . TypeBasedOptimization

Typed based optimizations are optimizations that can be performed based on information from the type inferencer, e.g.

Function call evaluation using type information

a = [ 1 2 ; 3 4 ]
b = ismatrix(a)

The type inferencer can determine that a is of type matrix. Therefore, we can rewrite this to,

a = [ 1 2 ; 3 4 ]
b = true

----- Revision r1.2 - 22 Nov 2004 - 11:00 - RobVermaas
Copyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback