Module: CArray::CoreExtensions

Defined in:
lib/carray/core_extensions.rb

Overview

Refinement carrying the carray-flavoured additions to Float / Integer / Rational / Numeric / TrueClass / FalseClass, for files that opt in with using CArray::CoreExtensions.

It provides postfix math on scalars (so (0.0415*(t-218.8)).tanh reads the same whether t is a Float or a CArray), angle normalisation, and comparison helpers. Being a refinement, it is lexically scoped: nothing changes for code that does not opt in.