View Single Post
  #48   Spotlight this post!  
Unread 31-05-2013, 10:57
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: OPR-computation-related linear algebra problem

Quote:
Originally Posted by Foster View Post
Ether: Just for grins, I tried RLab on our 16 way cluster. For some reason I'm not getting responses to tic()/toc(); What Windows OS are you running RLab under?
32-bit XP Pro SP3 on a Pentium D 3.4GHz

Don't forget to leave the semi-colon off the toc() if you want it to display.

Here's the code:
Code:
diary("output.txt");

tic();
d=readm("d.dat");
toc()


tic();
N=readm("N.dat");
toc()


tic();
x = solve(N,d,"S");
toc()

Here's the output.txt file:
Code:
// RLaB diary file: output.txt. Opened Fri May 31 10:53:02 2013


tic();
d=readm("d.dat");
toc()
        0  


tic();
N=readm("N.dat");
toc()
      3.8  


tic();
x = solve(N,d,"S");
toc()
     14.5
If you run it interactively, by cutting-and-pasting the code directly into the RLaB window (or by typing the commands at the RLaB prompt one at a time), here's the output that will display on the screen:

Code:
Welcome to RLaB. New users type `help INTRO'
RLaB version 2.1.05 Copyright (C) 1992-97 Ian Searle
RLaB comes with ABSOLUTELY NO WARRANTY; for details type `help warranty'
This is free software, and you are welcome to redistribute it under
certain conditions; type `help conditions' for details
>
> tic();
> d=readm("d.dat");
> toc()
        0
>
>
> tic();
> N=readm("N.dat");
> toc()
     3.67
>
>
> tic();
> x = solve(N,d,"S");
> toc()
     14.4
>

Reply With Quote