Closed taless474 closed 4 years ago
Please let me fix #1137 problem here. I have not changed anything in constant
and random
since the tests were passed.
Please let me fix #1137 problem here. I have not changed anything in constant and random since the tests were passed.
Please let me know once this is ready to go.
This PR would fix #1129 and #1137. It assumes that for a column vector spans size is 1 (e.g. spans =[[start, stop]]). For a row vector spans has a unit number of dimensions, but it is represented as spans = [[0,0],[start,stop]].
This PR changes the starting dimension of tiling spans in a way that they are compatible with node data conventions. For example, in a 3d array, the first dimension is the page dimension, the second one is the row dimension and then we have the column dimension (pages x rows x columns). The distributed version of
dot
andcannon_product
usesget_span
directly, so these primitives are modified. Also, tiling_information dimensions are adapted for the PHYLANX_MAX_DIMENSIONS, 4. To comply with node_data, the name ofdimension()
member function of thelocalities_information
is changed tonum_dimensions()
(It returns asize_t
that is the number of dimensions).