avatar
D*0
1
my PD is 2007/9 and submitted in early Nov 2011 and was selected for
interview due to failing PF at the end of March. No one is worst than me...
avatar
G*G
2
given a set of numbers, such as ,1,5,4,2, we can sort it and the result is 5
,4,2,1 by the descending order.
but if given a set of vectors, how to sort them,
for example
a1={1,1,1,1,4}
a2={2,1,4,3,2}
a3={3,2,4,2,1}
how to sort a1, a2, and a3?
avatar
p*t
3
Bless!
avatar
l*1
4
Please try
同主题阅读:C#里有sort多维数组的东东么?
[版面:窗口里的风景][首篇作者:midnightfire] ,
2003年11月12日
[回复]
[ 2 ]
发信人: Cklein (Calvin Klein), 信区: DotNet
标 题: Re: C#里有sort多维数组的东东么?
发信站: Unknown Space - 未名空间 (Thu Nov 13 10:49:10 2003) WWW-POST
Implement IComparable.

http://www.mitbbs.com/article_t1/DotNet/3396902_3396903_1.html
more details please go to
//www.e800.com.cn/articles/2011/0822/493921.shtml
5
avatar
a*a
5
bless
avatar
l*k
6
中学数学:向量不能比较大小。你要比,可以比norm,可以比某个分量。

5

【在 G***G 的大作中提到】
: given a set of numbers, such as ,1,5,4,2, we can sort it and the result is 5
: ,4,2,1 by the descending order.
: but if given a set of vectors, how to sort them,
: for example
: a1={1,1,1,1,4}
: a2={2,1,4,3,2}
: a3={3,2,4,2,1}
: how to sort a1, a2, and a3?

avatar
p*a
7
bless
avatar
e*r
8
你是搞哪个方向的?
怎么什么都懂啊 ....

【在 l**********1 的大作中提到】
: Please try
: 同主题阅读:C#里有sort多维数组的东东么?
: [版面:窗口里的风景][首篇作者:midnightfire] ,
: 2003年11月12日
: [回复]
: [ 2 ]
: 发信人: Cklein (Calvin Klein), 信区: DotNet
: 标 题: Re: C#里有sort多维数组的东东么?
: 发信站: Unknown Space - 未名空间 (Thu Nov 13 10:49:10 2003) WWW-POST
: Implement IComparable.

avatar
j*0
9
Bless
avatar
x*6
10
这发生物版来时闹哪样?
avatar
w*t
11
Egg stable
avatar
g*t
12
Right. LZ must define a function (rule) to compare two vectors. The
implementation depends on your programming language,but it should be fairly
easy to do it using some libraries/functions, e.g. the qsort function in C,
if the comparison is well defined.

【在 l********k 的大作中提到】
: 中学数学:向量不能比较大小。你要比,可以比norm,可以比某个分量。
:
: 5

avatar
r*s
13
blessing
avatar
l*1
14
How to sort a generic List
After reading this post from Steven Smith I thought I should write something about it.
Sorting a generic List is pretty straightforward if you know how to do it. With C# 2.0, anonymous
methods come at hand, as well as the little known Comparison delegate (check out this post for more
information about this class as well as other useful classes new to C# 2.0).
Ok, let's suppose we have a product class (let me save some space by using C# 3.0 syntax).
-----
Public Class Product
Implements IComparable(Of Product)
' Methods
Shared Sub New()
Product.PriceComparison = Function (ByVal p1 As Product, ByVal p2 As
Product)
Return p1.price.CompareTo(p2.price)
End Function
Product.IDComparison = Function (ByVal p1 As Product, ByVal p2 As
Product)
Return p1.id.CompareTo(p2.id)
End Function
End Sub
Public Sub New(ByVal id As Integer, ByVal prodName As String, ByVal
price As Decimal)
Me.id = id
Me.prodName = prodName
Me.price = price
End Sub
Public Function CompareTo(ByVal other As Product) As Integer
Return Me.ProductName.CompareTo(other.ProductName)
End Function
Private Shared Sub Main()
End Sub
Public Overrides Function ToString() As String
Return String.Format("Id: {0} Name: {1} Price: {2}", Me.id, Me.
prodName, Me.price)
End Function
' Properties
Public Property ProductID As Integer
Get
Return Me.id
End Get
Set(ByVal value As Integer)
Me.id = value
End Set
End Property
Public Property ProductName As String
Get
Return Me.prodName
End Get
Set(ByVal value As String)
Me.prodName = value
End Set
End Property
Public Property UnitPrice As Decimal
Get
Return Me.price
End Get
Set(ByVal value As Decimal)
Me.price = value
End Set
End Property
' Fields
Private id As Integer
Public Shared IDComparison As Comparison(Of Product)
Private price As Decimal
Public Shared PriceComparison As Comparison(Of Product)
Private prodName As String
End Class
---
//dotnetslackers.com/Community/blogs/simoneb/archive/2007/06/20/How-to-sort-a-generic-
List_3C00_T_3E00_.aspx
avatar
i*s
15
bless
发包子
攒人品
avatar
a*x
16
depending on your rules. For example, you can sort by the length of vectors,
a1 = 1^2 + 1^2 + 1^2 + 1^2 + 4^2, etc. You can also look for their spatial
distribution. We have many software for high-content screenings that can do
it. It's not sorting though

5

【在 G***G 的大作中提到】
: given a set of numbers, such as ,1,5,4,2, we can sort it and the result is 5
: ,4,2,1 by the descending order.
: but if given a set of vectors, how to sort them,
: for example
: a1={1,1,1,1,4}
: a2={2,1,4,3,2}
: a3={3,2,4,2,1}
: how to sort a1, a2, and a3?

avatar
C*X
17
BLESS
avatar
r*e
18
Bless
avatar
r*u
19
Bless
avatar
y*r
20
Bless!
avatar
a*d
21
Bless!
avatar
u*r
22
bless

【在 D*****0 的大作中提到】
: my PD is 2007/9 and submitted in early Nov 2011 and was selected for
: interview due to failing PF at the end of March. No one is worst than me...

avatar
l*n
23
bless
avatar
c*t
24
Bless

my PD is 2007/9 and submitted in early Nov 2011 and was selected for
interview due to fa........
★ Sent from iPhone App: iReader Mitbbs Lite 7.39

【在 D*****0 的大作中提到】
: my PD is 2007/9 and submitted in early Nov 2011 and was selected for
: interview due to failing PF at the end of March. No one is worst than me...

avatar
a*a
25
bless
avatar
l*i
26
you will be fine

【在 D*****0 的大作中提到】
: my PD is 2007/9 and submitted in early Nov 2011 and was selected for
: interview due to failing PF at the end of March. No one is worst than me...

avatar
z*o
27
bless!!!
avatar
f*0
28
bless
avatar
s*d
29
bless, your card is on the way!
avatar
a*1
30
bless
avatar
k*3
31
bless
avatar
k*o
32
bless
avatar
s*d
33
Dude, your case is much better than mine. my PD is 2007/8, and haven't
submit 485 yet, still going through perm AGAIN!

【在 D*****0 的大作中提到】
: my PD is 2007/9 and submitted in early Nov 2011 and was selected for
: interview due to failing PF at the end of March. No one is worst than me...

avatar
d*r
34
BLESS
avatar
r*0
35
bless
avatar
s*1
36
bless
avatar
a*9
37
Bless
avatar
J*n
38
bless
avatar
m*1
39
Exactly the same here (PD 9/2007, RD 11/2011) and still "initial review". At
least you will get interview, after which you will get greened soon. My
status has been unchanged since "On November 2, we received your..."
Ridiculous!
Don't worry -- it's your turn soon. Bless us all!

【在 D*****0 的大作中提到】
: my PD is 2007/9 and submitted in early Nov 2011 and was selected for
: interview due to failing PF at the end of March. No one is worst than me...

avatar
s*3
40
Bless us all!
avatar
n*s
41
Not too bad.
avatar
b*s
42
Bless, you will be fine!
avatar
c*n
43
bless
avatar
D*0
44
why did you have to re-do the PERM?
All the wishes.

【在 s*******d 的大作中提到】
: Dude, your case is much better than mine. my PD is 2007/8, and haven't
: submit 485 yet, still going through perm AGAIN!

avatar
D*0
45
big bless all the people in the same boat.

At

【在 m*******1 的大作中提到】
: Exactly the same here (PD 9/2007, RD 11/2011) and still "initial review". At
: least you will get interview, after which you will get greened soon. My
: status has been unchanged since "On November 2, we received your..."
: Ridiculous!
: Don't worry -- it's your turn soon. Bless us all!

avatar
q*i
46
bless. I am waiting for my interview letter too
avatar
m*t
47
bless. not big deal
avatar
b*9
48
I am worse.
PD early 8/2007, Rd late 11/2011
still waiting!

【在 D*****0 的大作中提到】
: my PD is 2007/9 and submitted in early Nov 2011 and was selected for
: interview due to failing PF at the end of March. No one is worst than me...

avatar
g*5
49
好事多磨,祝福
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。