octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #34351] Feature Request : rand[nep] should acc


From: Rik
Subject: [Octave-bug-tracker] [bug #34351] Feature Request : rand[nep] should accept a final "class" argument
Date: Wed, 21 Sep 2011 05:39:40 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0

URL:
  <http://savannah.gnu.org/bugs/?34351>

                 Summary: Feature Request : rand[nep] should accept a final
"class" argument
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Tue 20 Sep 2011 10:39:39 PM PDT
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The functions for creating matrices, such as ones(), accept a final string
argument to set the class of the returned matrix to something other than the
default "double".  For example:


sing_ones = ones (3,2,"single");


It would be useful if the functions which generate random matrices (rand,
randn, rande, randp, randg) would follow the same syntax.  Matlab already does
this (http://www.mathworks.com/help/techdoc/ref/randn.html).  

This feature would have been handy during my rewrite of the statistical
distribution functions.  Instead I had to create the desired matrix and then
explicitly cast it to class "single".





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34351>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]