Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 10:56
sitebuilderLuc Pattyn3-May-10 10:56 
AnswerRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 10:47
mvePete O'Hanlon3-May-10 10:47 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 11:05
sitebuilderLuc Pattyn3-May-10 11:05 
GeneralRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 11:16
mvePete O'Hanlon3-May-10 11:16 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 11:26
sitebuilderLuc Pattyn3-May-10 11:26 
GeneralRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 11:23
mvePete O'Hanlon3-May-10 11:23 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 11:27
sitebuilderLuc Pattyn3-May-10 11:27 
GeneralRe: i wait so much because of loops Pin
karayel_kara4-May-10 3:52
karayel_kara4-May-10 3:52 
hi ,i modified my code folowing that, but i get some error


folowing code running !


double[,] a,  b,  c;<br />
           a = new double[2000, 2000];<br />
                 b=new double[2000,2000];<br />
              c=new double[2000,2000];<br />
            int s = 2000;<br />
<br />
            Parallel.For(0, s, delegate(int i)<br />
            {<br />
                for (int j = 0; j < s; j++)<br />
                {<br />
                    double v = 0;<br />
<br />
                    for (int k = 0; k < s; k++)<br />
                    {<br />
                        v += a[i, k] * b[k, j];<br />
                    }<br />
<br />
                    c[i, j] = v;<br />
                }<br />
            });

bu my code isn't run Frown | :(

Parallel.For(0, nrons, delegate(int k)<br />
    {<br />
              for (i = 0; i < nrons; i++)<br />
                for (j = 0; j < nrons; j++)<br />
                    //G[i, j] = Math.Min(G[i, j], G[i, k] + G[k, j]);       <br />
                       if (G[i, j]> (G[i, k] + G[k, j]) )<br />
                        G[i, j] =(G[i, k] + G[k, j]) ;<br />
<br />
    <br />
    }<br />
    <br />
    <br />
    );<br />


why did i get error ?
GeneralRe: i wait so much because of loops Pin
Luc Pattyn4-May-10 4:18
sitebuilderLuc Pattyn4-May-10 4:18 
QuestionMissing special symbols Pin
Sebastian T Xavier3-May-10 1:29
Sebastian T Xavier3-May-10 1:29 
AnswerRe: Missing special symbols Pin
Alan N3-May-10 2:24
Alan N3-May-10 2:24 
QuestionRemove items from the list box in C# windows application Pin
yadlaprasad3-May-10 0:31
yadlaprasad3-May-10 0:31 
AnswerRe: Remove items from the list box in C# windows application Pin
Abhinav S3-May-10 0:49
Abhinav S3-May-10 0:49 
AnswerRe: Remove items from the list box in C# windows application Pin
nagendrathecoder3-May-10 0:52
nagendrathecoder3-May-10 0:52 
AnswerRe: Remove items from the list box in C# windows application Pin
Abdul Rahman Hamidy3-May-10 0:53
Abdul Rahman Hamidy3-May-10 0:53 
AnswerRe: Remove items from the list box in C# windows application Pin
Henry Minute3-May-10 3:32
Henry Minute3-May-10 3:32 
AnswerRe: Remove items from the list box in C# windows application Pin
PIEBALDconsult3-May-10 4:44
mvePIEBALDconsult3-May-10 4:44 
QuestionHtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 0:10
professional#realJSOP3-May-10 0:10 
AnswerRe: HtmlAgilityPack Weirdness Pin
Ravi Bhavnani3-May-10 2:42
professionalRavi Bhavnani3-May-10 2:42 
AnswerRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 2:47
sitebuilderLuc Pattyn3-May-10 2:47 
AnswerRe: HtmlAgilityPack Weirdness Pin
Pete O'Hanlon3-May-10 2:50
mvePete O'Hanlon3-May-10 2:50 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 5:54
professional#realJSOP3-May-10 5:54 
GeneralRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 6:09
sitebuilderLuc Pattyn3-May-10 6:09 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 6:46
professional#realJSOP3-May-10 6:46 
GeneralRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 6:57
sitebuilderLuc Pattyn3-May-10 6:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.