Show
Ignore:
Timestamp:
07/06/09 14:54:51 (5 months ago)
Author:
sukyoungryu
Message:

[copyright] Fixed the copyright notices in Kento's code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/demos/DemoGenerator22D.fss

    r3917 r3923  
    11(******************************************************************************* 
    2   Generator-of-Generators Library is copyrighted free software by Kento Emoto  
    3   <emoto[at]ipl.t.u-tokyo.ac.jp> developed under the collaborative  
    4   research on Fortress Programming Language between Sun Microsystems,  
    5   Inc. and the University of Tokyo.   
     2  Generator-of-Generators Library is copyrighted free software by Kento Emoto 
     3  <emoto[at]ipl.t.u-tokyo.ac.jp> developed under the collaborative 
     4  research on Fortress Programming Language between Sun Microsystems, 
     5  Inc. and the University of Tokyo. 
    66 
    7   You can redistribute it and/or modify it under the following  
     7  You can redistribute it and/or modify it under the following 
    88  BSD-style license or the Sun Contributor Agreement that Kento Emoto signed. 
    99 
    10   Copyright (c) 2009 by Kento Emoto 
     10  Copyright 2009 by Kento Emoto 
    1111  All rights reserved. 
    1212 
    13   Redistribution and use in source and binary forms, with or without  
    14   modification, are permitted provided that the following conditions  
     13  Redistribution and use in source and binary forms, with or without 
     14  modification, are permitted provided that the following conditions 
    1515  are met: 
    1616 
    17       * Redistributions of source code must retain the above copyright  
     17      * Redistributions of source code must retain the above copyright 
    1818        notice, this list of conditions and the following disclaimer. 
    19       * Redistributions in binary form must reproduce the above copyright  
    20         notice, this list of conditions and the following disclaimer  
    21         in the documentation and/or other materials provided with the  
     19      * Redistributions in binary form must reproduce the above copyright 
     20        notice, this list of conditions and the following disclaimer 
     21        in the documentation and/or other materials provided with the 
    2222        distribution. 
    23       * Neither the name of Kento Emoto nor the names of its  
    24         contributors may be used to endorse or promote products derived  
     23      * Neither the name of Kento Emoto nor the names of its 
     24        contributors may be used to endorse or promote products derived 
    2525        from this software without specific prior written permission. 
    2626 
    27   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"  
    28   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,  
    29   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR  
    30   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR  
    31   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,  
    32   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,  
    33   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;  
    34   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,  
    35   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR  
    36   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF  
     27  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
     28  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
     29  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
     30  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
     31  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
     32  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
     33  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 
     34  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
     35  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 
     36  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
    3737  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    3838 
     
    5959(* the optimization works well *) 
    6060rundemo(i) = do 
    61   xs = array[\Number\]( (sizes[i],sizes[i]) ).fill(fn (ij):ZZ32 => |\random(10)-5/|)   
     61  xs = array[\Number\]( (sizes[i],sizes[i]) ).fill(fn (ij):ZZ32 => |\random(10)-5/|) 
    6262  demo() = do 
    63     st = nanoTime()     
     63    st = nanoTime() 
    6464    ans=BIG MAX[\Number\] <|[\Number\] SUM[\Number\] r | r <- rects xs |> 
    6565    et = nanoTime() 
    6666    t = et - st 
    6767    ss = t / 1000000000.0 
    68      
     68 
    6969    n = sizes[i] 
    7070    println("mrs of " n "x" n " in " t " ns ( " ss " s) (the answer is " ans")") 
     
    7878 
    7979  println ("computing the maximum rectangle sum (mrs) : BIG MAX <| SUM r | r <- rects xs |>") 
    80    
     80 
    8181  switchDispatching(false) 
    8282  println("without optimization...")