search for: order2

Displaying 3 results from an estimated 3 matches for "order2".

Did you mean: order
2006 Jan 15
1
Cloning a one-many association
Hi, I want to make a copy of an object with its associations, and I am looking for an elegant solution. This is what I intuitively think should work, but it doesn''t: order2 = order1.clone order1.line_items.each do |o| order2.line_items.build(o) end This doesn''t work because a model class does not stringify its keys ... so I can''t pass an object into a method that wants a hash, because an object doesn''t convert itself to a hash when need...
2004 Oct 20
0
heatmap.2 ordering & color key
...ing difficulty ordering them except in numerical sequence: I have transposed my matrix so it will appear with the dendrogram I want appearing at the top of the heatmap If I use either of these orders the ordering works: order <- c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24) order2 <- c(24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1) using the command: heatmap.2(tmatrix, clusteredmatrixasdendrogram, col=bluered600, dendrogram="column", scale="none", trace="none", Rowv=order) however If I start mixing the numbers up e.g: order...
2016 Sep 24
4
RFC: ConstantData should not have use-lists
r261464 added a type called ConstantData to the Value hierarchy. This is a parent type for constants with no operands, such as i32 0 and null. Since then, I've removed most instances of iterating through the use-lists of an instance of ConstantData. I'd like to make this illegal. Since the users of ConstantData are spread across an LLVMContext, most code that looks at the users is