Deep Operators

Prev Next

Introduction

Deep Operators are very unique features specifically designed for B4P. Deep operators are unary and binary operators followed by accent circumflex ^ symbols which indicate that the operator shall be applied on the elements inside sets. This concept allows vector and matrix calculations without programming loops.

Applying deep operator in simple sets (vectors) requiers adding one ^-symbol after the operator. For further nesting, e.g. matrices (e.g. { {1,2,3},{4,5,6} }), 2 or more consecutive ^-symbols are needed to specify the right depth. Not using these symboles result in applying the operators on the set directly, e.g. '+' for catenating two sets together.

Following deep operators are described next:



Next to the deep operators, vectorization provides similar features when using specific function calls.

See also

Vectorization
deep