Changeset 13f9a4e in tol


Ignore:
Timestamp:
Mar 2, 2010, 8:36:08 AM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
0907790
Parents:
77c938e
Message:

Using efficient grouping functions

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2049 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol_pkg
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tol_pkg/FunRn2R/BaseC2.Concat.tol

    r77c938e r13f9a4e  
    2424  {
    2525    Real n = (base[1])::_.n;
    26     Set map = BinGroup("<<", For(1,Card(base),Set(Real h)
     26    Set map = SetConcat(For(1,Card(base),Set(Real h)
    2727    {
    2828      If((base[h])::_.n!=n,WriteLn("[@BaseC2.Concat::New] "
  • tol_pkg/GisTools/Interp2D.tol

    r77c938e r13f9a4e  
    142142    Real j.min = Max(1,p.y.class-1);
    143143    Real j.max = Min(Card(_.y.range)+1,p.y.class+1);
    144     Set p.candidates = BinGroup("<<",For(i.min, i.max, Set(Real i)
    145     {
    146       BinGroup("<<",For(j.min, j.max, Set(Real j)
     144    Set p.candidates = SetConcat(For(i.min, i.max, Set(Real i)
     145    {
     146      SetConcat(For(j.min, j.max, Set(Real j)
    147147      {
    148148        _.grid[i][j] 
    … …  
    171171    Real j.min = Max(1,p.y.class-1);
    172172    Real j.max = Min(Card(_.y.range)+1,p.y.class+1);
    173     Set p.candidates = BinGroup("<<",For(i.min, i.max, Set(Real i)
    174     {
    175       BinGroup("<<",For(j.min, j.max, Set(Real j)
     173    Set p.candidates = SetConcat(For(i.min, i.max, Set(Real i)
     174    {
     175      SetConcat(For(j.min, j.max, Set(Real j)
    176176      {
    177177        _.grid[i][j] 
  • tol_pkg/MatQuery/test/test_0001/test.tol

    r77c938e r13f9a4e  
    5151
    5252//Locations of cities
    53 Matrix city.center = BinGroup("<<",For(1,city.num, Matrix(Real city)
     53Matrix city.center = Group("ConcatRows",For(1,city.num, Matrix(Real city)
    5454{
    5555  Rand(1, 2, coord.min, coord.max)
    … …  
    6868
    6969//All points
    70 VMatrix points = Mat2VMat(BinGroup("<<",city.points));
     70VMatrix points = Mat2VMat(Group("ConcatRows",city.points));
    7171
    7272
  • tol_pkg/MulVarFunAprox/DesignC2.Monomial.Spheric.Rectangle.tol

    r77c938e r13f9a4e  
    174174    VMatrix _.Y.neighbourhood := _.Y.h | If(!force.reference.near.nodal,
    175175    {
    176       Set aux.1 = BinGroup("<<", For(1,_.n,Set(Real i)
     176      Set aux.1 = SetConcat(For(1,_.n,Set(Real i)
    177177      {
    178178        VMatrix pre  = SubCol(_.Y,Range(1,  i-1,1));
    … …  
    184184    },
    185185    {
    186       Set aux.1 = BinGroup("<<", For(1,_.n,Set(Real i)
     186      Set aux.1 = SetConcat(For(1,_.n,Set(Real i)
    187187      {
    188188        VMatrix pre    = SubCol(_.Y,Range(1,  i-1,1));
  • tol_pkg/MulVarFunAprox/IndexedGrid.tol

    r77c938e r13f9a4e  
    159159    VMatrix Y.neighbour.pos = _.Y + Rand(_.H,_.n,_.edge.length,_.edge.length);
    160160    VMatrix Y.neighbour.neg = _.Y - Rand(_.H,_.n,_.edge.length,_.edge.length);
    161     Set _.Y.neighbourhood.point := BinGroup("<<", For(1,_.n,Set(Real i)
     161    Set _.Y.neighbourhood.point := SetConcat(For(1,_.n,Set(Real i)
    162162    {
    163163      VMatrix pre  = SubCol(_.Y,Range(1,  i-1,1));
Note: See TracChangeset for help on using the changeset viewer.