Thank you Michael for the detailed reply.. I am going through these files..
I have a doubt regarding 'these' and 'these_help' iterators (line 181 and
151 respectively) in class DefaultRectangularDom of
DefaultRectangular.chpl.
'these' yields directly for rank == 1 and calls 'these_help' otherwise. Now
in the latter, the condition rank == d is checked at the beginning. So
can't we avoid the condition rank == 1 in 'these' and directly call
'these_help(rank)' ?
On Mon, May 22, 2017 at 7:13 PM, Michael Ferguson <[email protected]>
wrote:
> Hi -
>
> >Hello all,
> >
> >
> >In which module is domain defined? (I want the filename)..
> >
>
> This gets into internal-to-the-implementation stuff that
> you shouldn't rely on (or, if you do, expect to have to
> revisit your code when it changes).
>
> record _domain - modules/internal/ChapelArray.chpl
>
> class BaseDom - modules//internal/ChapelDistribution.chpl
>
> class DefaultRectangularDom - modules//internal/DefaultRectangular.chpl
> Arrays, domains, and distributions are implemented with
> a record-wrapped class. The record manages the memory
> of the array and contains a pointer to the class instance.
> Many operations are implemented as overloaded methods on
> the class instance - in this case BaseDom is the root
> of the class hierarchy and DefaultRectangularDom is a common
> specific instance. (But it's easy to get other instances
> using dmapped, associative, sparse, etc).
>
> Cheers,
>
> -michael
>
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers