kenweezy / scalalab

Automatically exported from code.google.com/p/scalalab
0 stars 0 forks source link

I cannot start using #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
 I'm studying ScalaLabAllDraftUserGuideJune142013.pdf 
I'm starting RunScalaLabClientJVMWin64.bat at Windows 7 64 bit.
When I enter first example:
var a = ones0(20, 30) // creates a zero-indexed 20X30 matrix filled with ones
var b = ones0(30, 50)
var c = a * b

console displays:
<console>:7: error: not found: value ones0
       var a = ones0(20, 30) // creates a zero-indexed 20X30 matrix filled with ones
               ^
<console>:8: error: not found: value ones0
       var b = ones0(30, 50)
               ^
Error

Imports do not help. 

Original issue reported on code.google.com by mvtv...@gmail.com on 31 Dec 2014 at 7:09

GoogleCodeExporter commented 9 years ago
Hi,

it seems that you have a Scala interpreter "not using any imports"

From the "Scala Interpreter" menu,
you can choose the preferred library (EJML works faster),
and then all the ScalaLab imported routines (as e.g. ones0)
will work well.

... it's better to avoid JEIGEN library, because the native routines,
currently do not work on Windows, but they work on Linux

Best Regards

Stergios

Original comment by st...@teikav.edu.gr on 31 Dec 2014 at 10:25

GoogleCodeExporter commented 9 years ago
Thank you! It started to work, but new problem: it seems console window is 
limited and displays only start of output... When matrixes are large, only "a" 
(from example) is displayed, when less, both "a" and "b", but I've never seen 
matrix "c" output...

Original comment by mvtv...@gmail.com on 31 Dec 2014 at 11:11

GoogleCodeExporter commented 9 years ago
Hi!

A limited amount of output is displayed for each script, 
in order to avoid printing large matrices, that can be very time consuming.
From the "Configuration" menu the option
"Control the format of displayed numbers and truncation of large matrices"
can configure somehow the amount of detail.

You can display an individual matrix by double-clicking on it,
for large matrices, you can call, e.g. 
c.print 
to print all the contents untruncated.

Original comment by st...@teikav.edu.gr on 1 Jan 2015 at 8:35

GoogleCodeExporter commented 9 years ago
Thank you! Funny, when I use F2,

import...
var a = ones0(1,2)
<cursor>

displays only imports. F6 displays matrix.

Original comment by mvtv...@gmail.com on 4 Jan 2015 at 8:29