enum

Num::ArrayFlags

Inherits Enum / Comparable / Value / Object

Constants

Contiguous = 1

Contiguous really means C-style contiguious. The contiguous part means that there are no 'skipped elements'. That is, that a flat_iter over the array will touch every location in memory from the location of the first element to that of the last element. The C-style part means that the data is laid out such that the last index is the fastest varying as one scans though the array's memory.

Fortran = 2

Fortran really means Fortran-style contiguious. The contiguous part means that there are no 'skipped elements'. That is, that a flat_iter over the array will touch every location in memory from the location of the first element to that of the last element. The Fortran-style part means that the data is laid out such that the first index is the fastest varying as one scans though the array's memory.

OwnData = 4

OwnData indicates if this array is the owner of the data pointed to by its .ptr property. If not then this is a view onto some other array's data.

Write = 8

Some views into arrays are created using stride tricks and aren't safe to write to, since many locations may be sharing the same memory

None = 0
All = 15

Instance methods

contiguous?

Returns true if this enum value contains Contiguous

Source
fortran?

Returns true if this enum value contains Fortran

Source
none?
Source
own_data?

Returns true if this enum value contains OwnData

Source
write?

Returns true if this enum value contains Write

Source