This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Random Matrix

Tags: None
(comma "," separated)
PauloHenrique
Registered Member
Posts
1
Karma
0

Random Matrix

Wed Jul 11, 2012 1:47 am
Hi, is there any way to set a interval of numbers in the function setRandom()? I need to create random matrices with positive and interger numbers.
Thanks.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Random Matrix

Wed Jul 11, 2012 6:45 am
no, but you can post-process the result to scale it, offset-it, take the absolute values, call .floor(), convert from int to float, from float to int, etc.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]