search for: 3i

Displaying 20 results from an estimated 108 matches for "3i".

Did you mean: i3
2014 Jul 14
2
cummax / cummin for complex numbers
Dear all, in R 3.1.0, this is happening: > cummin(c(1+1i,2-3i,4+5i)) Error in cummin(c(1 + (0+1i), 2 - (0+3i), 4 + (0+5i))) : 'cummax' not defined for complex numbers > cummax(c(1+1i,2-3i,4+5i)) Error in cummax(c(1 + (0+1i), 2 - (0+3i), 4 + (0+5i))) : 'cummin' not defined for complex numbers It may be fixed in R-devel, but I thought...
2013 Jan 29
3
[LLVMdev] [PATCH] parallel loop awareness to the LoopVectorizer
On Jan 29, 2013, at 12:51 AM, Tobias Grosser <tobias at grosser.es> wrote: > > # ignore assumed dependences. > for (i = 0; i < 4; i++) { > tmp1 = A[3i+1]; > tmp2 = A[3i+2]; > tmp3 = tmp1 + tmp2; > A[3i] = tmp3; > } > > Now I apply for whatever reason a partial reg2mem transformation. > > float tmp3[1]; > > # ignore assumed dependences. // Still valid? > for (i = 0; i < 4; i++) { > tmp1 = A[3i+1];...
2006 Jun 13
17
reconstituting a date
In my view code, I have <%= datetime_select "in_out", "time_in" %> which returns in params :in_out: !map:HashWithIndifferentAccess time_in(1i): "2006" time_in(2i): "6" time_in(3i): "12" time_in(4i): "20" time_in(5i): "24" and I want to save that datetime to a column in the db... if params[:user][:in_out] == "In" @in_out.time_in = params[:in_out][:time_in] elsif params[:user][:in_out] == "Out"...
2013 Jan 29
0
[LLVMdev] [PATCH] parallel loop awareness to the LoopVectorizer
...e bit fast in my last email. I would like to discuss the test cases I want to see a little bit more. I am especially interested to see that the meta data is robust in case of transformations. Assuming we have something like; # ignore assumed dependences. for (i = 0; i < 4; i++) { tmp1 = A[3i+1]; tmp2 = A[3i+2]; tmp3 = tmp1 + tmp2; A[3i] = tmp3; } Now I apply for whatever reason a partial reg2mem transformation. float tmp3[1]; # ignore assumed dependences. // Still valid? for (i = 0; i < 4; i++) { tmp1 = A[3i+1]; tmp2 = A[3i+2]; tmp3[0] = tmp1 + tmp2; A...
2007 Jan 16
2
Specifying the contents of a date selector
...the date_select form helper to give me three select popups, (day, month, year). I want to specify that these exist and are set to today''s date I''ve tried this: response.should_have ''form > p > select [name="gap_quick_quote_parameters[purchase_date(3i)]"] > option'', :attributes => { :value => ''16'', :selected => ''selected'' }, :content => ''16'' But it fails, saying: Invalid selector: "] > option...
2013 Jan 30
0
[LLVMdev] [PATCH] parallel loop awareness to the LoopVectorizer
On 01/29/2013 07:58 PM, Nadav Rotem wrote: > > On Jan 29, 2013, at 12:51 AM, Tobias Grosser <tobias at grosser.es > <mailto:tobias at grosser.es>> wrote: > >> >> # ignore assumed dependences. >> for (i = 0; i < 4; i++) { >> tmp1 = A[3i+1]; >> tmp2 = A[3i+2]; >> tmp3 = tmp1 + tmp2; >> A[3i] = tmp3; >> } >> >> Now I apply for whatever reason a partial reg2mem transformation. >> >> float tmp3[1]; >> >> # ignore assumed dependences. // Still valid? >> for (i = 0;...
2013 Jan 28
6
[LLVMdev] [PATCH] parallel loop awareness to the LoopVectorizer
Hi, Attached is a patch which uses a simple "parallel_loop" metadata attached to the loop branch instruction in the loop latch for skipping cross-iteration memory dependency checking in the LoopVectorizer. This was briefly discussed in the email thread "LoopVectorizer in OpenCL C work group autovectorization". It also converts the "min iteration count to vectorize"
2008 Feb 24
3
1 error(s) on assignment of multiparameter attributes
...e, I would like to leave the day field out of the form for obvious reasons. However, the following code is producing an error for me. Any ideas? Thanks! <p><label for="email">Expiration</label><br/> <input type="hidden" id="user_card_expiration_3i" name="user[card_expiration(3i)]" value="1" /> <%= f.date_select(:card_expiration, :start_year => 2008, :use_month_numbers => false, :discard_day => true, :include_blank => false) %></p> ActiveRecord::Multipara...
2006 Jul 06
3
Understanding date_select naming conventions
I am using the date_select helper to generate date select elements in a form. I notice that the generated HTML shows that these selects have the following names: Month: current_job[StartDate(2i)] Day: current_job[StartDate(3i)] Year: current_job[StartDate(1i)] I''m assuming that the Xi identifiers somehow specify the appropriate date part from a date or time value. Can anyone shed some light on how this works? Where can I get definite info. on it? Also, I am using select_hour, select_minute, and select_se...
2006 Feb 08
6
can''t get date_select to work
...;booking'']). I''ve got a ''booking'' object with parameters product, startdate and enddate. HTML snippets: <select name="booking[startdate(1i)]">... <select name="booking[startdate(2i)]">... <select name="booking[startdate(3i)]">... In the view controller method I create a booking object and set startdate to Date.today+1, and enddate to Date.today+2. When the page renders the dates are showing correctly according to how the controller set them up, so date_select is showing the right fields from my mode...
2010 Apr 05
4
NMDS Ordination Graphics Problem
...R problems. We were hoping you could help us solve a nagging problem that is prohibiting me from producing graphicl output. Here is a simple mock-up of the matrix I'm using a b c d e f 1i 1 4 7 9 2 5 2i 12 17 6 2 3 7 3i 2 5 8 1 3 2 1c 0 2 4 7 2 1 2c 0 1 4 6 9 10 3c 13 15 19 10 8 9 Where: 1i-3i are "infested" sites, and 1c-3c are "control sites". A-F are species found at each site. I have several of t...
2018 Aug 25
4
Where does L come from?
...iticism like that, it would really be fair to suggest what R should have done instead. I can't think of anything better, given that "i" was already taken, and that the lack of a decimal place had historically not been significant. Using "I" *would* have been confusing (3i versus 3I being very different). Deciding that 3 suddenly became an integer value different from 3. would have led to lots of inefficient conversions (since stats mainly deals with floating point values). Duncan Murdoch > > The fact that nowadays "int" and "long int&quo...
2006 Jun 12
2
date_select() in collection
...:starting_on, :index => @contract.contractor.id) %> ... <% end -%> Here are the request parameters: {"commit"=>"Save", "portfolio"=>{"starting_on(1i)"=>"2006", "starting_on(2i)"=>"6", "starting_on(3i)"=>"12", "finishing_on(1i)"=>"2006", "customer_id"=>"1", "finishing_on(2i)"=>"6", "finishing_on(3i)"=>"12"}, "id"=>"1", "pattern"=>"bala", &...
2006 Feb 28
1
Working with date_select ...
...te information. If I just leave it at that, great! But what if now in the controller, I want to work with the date information. I actually want to take the user input date and compute a new date some number of days in the future. How should I use "start_date(1i), start_date(2i), start_date(3i)" in a controller to fill in a new SQL date column? Does there exist helpers to convert from "start_date(1i), start_date(2i), start_date(3i)" to a Ruby Class like Date or Time? Page 203 of "Agile Web Development with Rails" implies that SQL Types like "interval, date...
2006 Jan 05
13
Date Validation
Hi, How can I validate date in model class Thanks. Sainaba. -- Posted via http://www.ruby-forum.com/.
2008 Jun 13
2
Rails 2.1: invalid date automatically convertion
Hi all, Rails 2.1 seems to converts the following parameters {''birth(1i)''=''1990'', ''birth(2i)''=>''2'', ''birth(3i)''=>''31''} into date ''1990-03-02'' automatically. Is it able to inhibit this convertion? -- makoto kuata --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rail...
2006 Jun 27
1
order() (PR#9039)
...s major 2 minor 2.1 year 2005 month 12 day 20 svn rev 36812 language R An example demonstrating the problem: x <- rep(2:1, c(2, 2)) + 1i*c(4, 1, 2, 3) > x [1] 2+4i 2+1i 1+2i 1+3i > order(x) Error in order(x) : unimplemented type 'complex' in 'orderVector1' However sort() works with complex arguments > sort(x) [1] 1+2i 1+3i 2+1i 2+4i The problem can be worked around either by > order(Re(x), Im(x)) [1] 3 4 2 1 or, because order() allows subsequent...
2002 Sep 26
3
error with complex solve (PR#2068)
Full_Name: John Peters Version: 1.5.1 OS: Windows 2000 Submission from: (NULL) (130.155.2.3) solve(a,b) with two arguments gives an error if a is complex and b is a vector: > a_matrix(c(1,2+3i,3,2),ncol=2) > a [,1] [,2] [1,] 1+0i 3+0i [2,] 2+3i 2+0i > b_c(2,2+1i) > solve(a,b) Error in solve.default(a, b) : A must be a complex matrix > is.complex(a) [1] TRUE > is.matrix(a) [1] TRUE > solve(a,diag(b)) [,1] [,2] [1,] -0.1649...
2010 Jul 26
1
form date helper with text year
...year range. My idea was to have the year entered as a text field and the month and day using something like: <%= select_month @person.born,:prefix => :person ,:field_name => "born(2i)" %> <%= select_day @person.born,:prefix => :person , :field_name => "born(3i)" %> <%= f.text_field ?????? or text_field_tag ???????? field_name => "born(1i)" %> I just can''t seem to find the set of options to build the year tag. Guess I also would have to extract the year out of the date for the value. Can''t seem to find any...
2007 Feb 01
2
file_column 2nd try....
...ntroller to the worker... Ok: when submitting the uploadform at least the worker get fired and passed the args as expected, as I can see in the backgroundrb_server.log: 20070201-10:47:29 (53830) Starting worker: image_worker upload_img (image_worker_upload_img) (imagecreated_on(2i)2created_on(3i)1created_on(4i)00created_on(5i)18updated_on(1i)2007updated_on(2i)2image_tempdescriptionbackgrounDRb33updated_on(3i)1imgnum007updated_on(4i)00image#<File:0x8d13028>updated_on(5i)18created_on(1i)2007) Now there are 2 questions: the image isnt uploaded, that is probably due to the fact that th...