Table of Contents

Enum NPY_CASTING

Namespace
NumSharp.Backends.Iteration
Assembly
NumSharp.dll

Casting rules enumeration matching NumPy's NPY_CASTING.

public enum NPY_CASTING
Extension Methods

Fields

NPY_NO_CASTING = 0

No casting allowed.

NPY_EQUIV_CASTING = 1

Only casting that preserves values.

NPY_SAFE_CASTING = 2

Safe casting (no loss of precision).

NPY_SAME_KIND_CASTING = 3

Same-kind casting allowed.

NPY_UNSAFE_CASTING = 4

Any casting allowed.