enum Num::ArrayFlags
Defined in:
tensor/internal/enums.crEnum Members
-
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