How to denote matrix elements succinctly? [closed]Fortran kind of matrix creationMatrix multiplication that includes a tensorHow to normalize parts of matrix elements?Row-wise matrix multiplicationReplacing elements of a matrixFill a matrix with the elements of a listMatrix operations “Modulus->non-prime” problemHow to list the pairwise matrix products of two lists of matricesDot Product of Block MatricesDefine a Givens rotation (or Jacobi rotation) matrix of size M

Why is my arithmetic with a long long int behaving this way?

Dihedral group D4 composition with custom labels

Krull dimension of the ring of global sections

Can my 2 children, aged 10 and 12, who are US citizens, travel to the USA on expired American passports?

How can Internet speed be 10 times slower without a router than when using the same connection with a router?

Why are the capacitors necessary for a quartz crystal?

Why didn't this character get a funeral at the end of Avengers: Endgame?

Has the Hulk always been able to talk?

Is there a word for food that's gone 'bad', but is still edible?

How can a hefty sand storm happen in a thin atmosphere like Martian?

As a GM, is it bad form to ask for a moment to think when improvising?

Sparring against two opponents test

Is there a proof that the set of real numbers can exactly represent distances?

Piano: quaver triplets in RH v dotted quaver and semiquaver in LH

Madam I m Adam..please don’t get mad..you will no longer be prime

Can full drive backup be used instead of MSSQL database backup?

Sci-fi/fantasy book - ships on steel runners skating across ice sheets

Why are oscilloscope input impedances so low?

Is any special diet an effective treatment of autism?

What do you call a painting on a wall?

What happens if I accidentally leave an app running and click "Install Now" in Software Updater?

How can I get people to remember my character's gender?

Why does sound not move through a wall?

In linear regression why does regularisation penalise the parameter values as well?



How to denote matrix elements succinctly? [closed]


Fortran kind of matrix creationMatrix multiplication that includes a tensorHow to normalize parts of matrix elements?Row-wise matrix multiplicationReplacing elements of a matrixFill a matrix with the elements of a listMatrix operations “Modulus->non-prime” problemHow to list the pairwise matrix products of two lists of matricesDot Product of Block MatricesDefine a Givens rotation (or Jacobi rotation) matrix of size M













3












$begingroup$


Is there a more elegant way of dealing with the following subscripting?



Do[threetest = 
MatrixRank[threepoints[[i]][[2]][[1]] -
threepoints[[i]][[1]][[1]],
threepoints[[i]][[2]][[2]] - threepoints[[i]][[1]][[2]],
threepoints[[i]][[3]][[1]] - threepoints[[i]][[1]][[1]],
threepoints[[i]][[3]][[2]] - threepoints[[i]][[1]][[2]]];
If[threetest < 2, Break[], 1], i, Binomial[n, 3]]









share|improve this question











$endgroup$



closed as off-topic by Roman, Henrik Schumacher, m_goldberg, happy fish, Alex Trounev Apr 27 at 12:25


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Roman, Henrik Schumacher, m_goldberg, happy fish, Alex Trounev
If this question can be reworded to fit the rules in the help center, please edit the question.















  • $begingroup$
    If the last dimension of threePoints is two, then you might try something like MatrixRank[threepoints[[i, 2 ;; 3]] - threepoints[[i, 1]]].
    $endgroup$
    – WReach
    Apr 26 at 18:29















3












$begingroup$


Is there a more elegant way of dealing with the following subscripting?



Do[threetest = 
MatrixRank[threepoints[[i]][[2]][[1]] -
threepoints[[i]][[1]][[1]],
threepoints[[i]][[2]][[2]] - threepoints[[i]][[1]][[2]],
threepoints[[i]][[3]][[1]] - threepoints[[i]][[1]][[1]],
threepoints[[i]][[3]][[2]] - threepoints[[i]][[1]][[2]]];
If[threetest < 2, Break[], 1], i, Binomial[n, 3]]









share|improve this question











$endgroup$



closed as off-topic by Roman, Henrik Schumacher, m_goldberg, happy fish, Alex Trounev Apr 27 at 12:25


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Roman, Henrik Schumacher, m_goldberg, happy fish, Alex Trounev
If this question can be reworded to fit the rules in the help center, please edit the question.















  • $begingroup$
    If the last dimension of threePoints is two, then you might try something like MatrixRank[threepoints[[i, 2 ;; 3]] - threepoints[[i, 1]]].
    $endgroup$
    – WReach
    Apr 26 at 18:29













3












3








3





$begingroup$


Is there a more elegant way of dealing with the following subscripting?



Do[threetest = 
MatrixRank[threepoints[[i]][[2]][[1]] -
threepoints[[i]][[1]][[1]],
threepoints[[i]][[2]][[2]] - threepoints[[i]][[1]][[2]],
threepoints[[i]][[3]][[1]] - threepoints[[i]][[1]][[1]],
threepoints[[i]][[3]][[2]] - threepoints[[i]][[1]][[2]]];
If[threetest < 2, Break[], 1], i, Binomial[n, 3]]









share|improve this question











$endgroup$




Is there a more elegant way of dealing with the following subscripting?



Do[threetest = 
MatrixRank[threepoints[[i]][[2]][[1]] -
threepoints[[i]][[1]][[1]],
threepoints[[i]][[2]][[2]] - threepoints[[i]][[1]][[2]],
threepoints[[i]][[3]][[1]] - threepoints[[i]][[1]][[1]],
threepoints[[i]][[3]][[2]] - threepoints[[i]][[1]][[2]]];
If[threetest < 2, Break[], 1], i, Binomial[n, 3]]






matrix notation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 26 at 17:48









user64494

3,65111222




3,65111222










asked Apr 26 at 15:29









user94858user94858

161




161




closed as off-topic by Roman, Henrik Schumacher, m_goldberg, happy fish, Alex Trounev Apr 27 at 12:25


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Roman, Henrik Schumacher, m_goldberg, happy fish, Alex Trounev
If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by Roman, Henrik Schumacher, m_goldberg, happy fish, Alex Trounev Apr 27 at 12:25


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Roman, Henrik Schumacher, m_goldberg, happy fish, Alex Trounev
If this question can be reworded to fit the rules in the help center, please edit the question.











  • $begingroup$
    If the last dimension of threePoints is two, then you might try something like MatrixRank[threepoints[[i, 2 ;; 3]] - threepoints[[i, 1]]].
    $endgroup$
    – WReach
    Apr 26 at 18:29
















  • $begingroup$
    If the last dimension of threePoints is two, then you might try something like MatrixRank[threepoints[[i, 2 ;; 3]] - threepoints[[i, 1]]].
    $endgroup$
    – WReach
    Apr 26 at 18:29















$begingroup$
If the last dimension of threePoints is two, then you might try something like MatrixRank[threepoints[[i, 2 ;; 3]] - threepoints[[i, 1]]].
$endgroup$
– WReach
Apr 26 at 18:29




$begingroup$
If the last dimension of threePoints is two, then you might try something like MatrixRank[threepoints[[i, 2 ;; 3]] - threepoints[[i, 1]]].
$endgroup$
– WReach
Apr 26 at 18:29










2 Answers
2






active

oldest

votes


















10












$begingroup$

If threepoints is defined with any kind of regularity, then threepoints[[i]][[2]][[1]] is the same as threepoints[[i,2,1]]. See the documentation of Part.



Further, you can do vector processing with ;;, along the lines of



Do[threetest = 
MatrixRank[threepoints[[i, 2, 1 ;; 2]] - threepoints[[i, 1, 1 ;; 2]],
threepoints[[i, 3, 1 ;; 2]] - threepoints[[i, 1, 1 ;; 2]]];
If[threetest < 2, Break[], 1],
i, Binomial[n, 3]]


If the third coordinate of threetest has only two slots (that is, if Dimensions[threetest] returns something,something,2), then the above can also be written as



Do[threetest = 
MatrixRank[threepoints[[i, 2]] - threepoints[[i, 1]],
threepoints[[i, 3]] - threepoints[[i, 1]]];
If[threetest < 2, Break[], 1],
i, Binomial[n, 3]]





share|improve this answer











$endgroup$




















    6












    $begingroup$

    The other thing I do is to use the stylized brackets in all of my MMA code. Stackexchange mangles it, so have to use a picture to demonstrate:



    enter image description here



    Big difference in readability.






    share|improve this answer









    $endgroup$












    • $begingroup$
      Also, you can put them in the subscript and they work equally. And if it's still not enough, you can use the invisible comma to separate indices. ;-)
      $endgroup$
      – Veky
      Apr 27 at 3:53










    • $begingroup$
      It’s probably worth adding how to enter these doubled brackets using the keyboard: Esc–[–[–Esc.
      $endgroup$
      – Stephen Powell
      Apr 27 at 9:17

















    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    10












    $begingroup$

    If threepoints is defined with any kind of regularity, then threepoints[[i]][[2]][[1]] is the same as threepoints[[i,2,1]]. See the documentation of Part.



    Further, you can do vector processing with ;;, along the lines of



    Do[threetest = 
    MatrixRank[threepoints[[i, 2, 1 ;; 2]] - threepoints[[i, 1, 1 ;; 2]],
    threepoints[[i, 3, 1 ;; 2]] - threepoints[[i, 1, 1 ;; 2]]];
    If[threetest < 2, Break[], 1],
    i, Binomial[n, 3]]


    If the third coordinate of threetest has only two slots (that is, if Dimensions[threetest] returns something,something,2), then the above can also be written as



    Do[threetest = 
    MatrixRank[threepoints[[i, 2]] - threepoints[[i, 1]],
    threepoints[[i, 3]] - threepoints[[i, 1]]];
    If[threetest < 2, Break[], 1],
    i, Binomial[n, 3]]





    share|improve this answer











    $endgroup$

















      10












      $begingroup$

      If threepoints is defined with any kind of regularity, then threepoints[[i]][[2]][[1]] is the same as threepoints[[i,2,1]]. See the documentation of Part.



      Further, you can do vector processing with ;;, along the lines of



      Do[threetest = 
      MatrixRank[threepoints[[i, 2, 1 ;; 2]] - threepoints[[i, 1, 1 ;; 2]],
      threepoints[[i, 3, 1 ;; 2]] - threepoints[[i, 1, 1 ;; 2]]];
      If[threetest < 2, Break[], 1],
      i, Binomial[n, 3]]


      If the third coordinate of threetest has only two slots (that is, if Dimensions[threetest] returns something,something,2), then the above can also be written as



      Do[threetest = 
      MatrixRank[threepoints[[i, 2]] - threepoints[[i, 1]],
      threepoints[[i, 3]] - threepoints[[i, 1]]];
      If[threetest < 2, Break[], 1],
      i, Binomial[n, 3]]





      share|improve this answer











      $endgroup$















        10












        10








        10





        $begingroup$

        If threepoints is defined with any kind of regularity, then threepoints[[i]][[2]][[1]] is the same as threepoints[[i,2,1]]. See the documentation of Part.



        Further, you can do vector processing with ;;, along the lines of



        Do[threetest = 
        MatrixRank[threepoints[[i, 2, 1 ;; 2]] - threepoints[[i, 1, 1 ;; 2]],
        threepoints[[i, 3, 1 ;; 2]] - threepoints[[i, 1, 1 ;; 2]]];
        If[threetest < 2, Break[], 1],
        i, Binomial[n, 3]]


        If the third coordinate of threetest has only two slots (that is, if Dimensions[threetest] returns something,something,2), then the above can also be written as



        Do[threetest = 
        MatrixRank[threepoints[[i, 2]] - threepoints[[i, 1]],
        threepoints[[i, 3]] - threepoints[[i, 1]]];
        If[threetest < 2, Break[], 1],
        i, Binomial[n, 3]]





        share|improve this answer











        $endgroup$



        If threepoints is defined with any kind of regularity, then threepoints[[i]][[2]][[1]] is the same as threepoints[[i,2,1]]. See the documentation of Part.



        Further, you can do vector processing with ;;, along the lines of



        Do[threetest = 
        MatrixRank[threepoints[[i, 2, 1 ;; 2]] - threepoints[[i, 1, 1 ;; 2]],
        threepoints[[i, 3, 1 ;; 2]] - threepoints[[i, 1, 1 ;; 2]]];
        If[threetest < 2, Break[], 1],
        i, Binomial[n, 3]]


        If the third coordinate of threetest has only two slots (that is, if Dimensions[threetest] returns something,something,2), then the above can also be written as



        Do[threetest = 
        MatrixRank[threepoints[[i, 2]] - threepoints[[i, 1]],
        threepoints[[i, 3]] - threepoints[[i, 1]]];
        If[threetest < 2, Break[], 1],
        i, Binomial[n, 3]]






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 26 at 18:50

























        answered Apr 26 at 15:33









        RomanRoman

        7,14511134




        7,14511134





















            6












            $begingroup$

            The other thing I do is to use the stylized brackets in all of my MMA code. Stackexchange mangles it, so have to use a picture to demonstrate:



            enter image description here



            Big difference in readability.






            share|improve this answer









            $endgroup$












            • $begingroup$
              Also, you can put them in the subscript and they work equally. And if it's still not enough, you can use the invisible comma to separate indices. ;-)
              $endgroup$
              – Veky
              Apr 27 at 3:53










            • $begingroup$
              It’s probably worth adding how to enter these doubled brackets using the keyboard: Esc–[–[–Esc.
              $endgroup$
              – Stephen Powell
              Apr 27 at 9:17















            6












            $begingroup$

            The other thing I do is to use the stylized brackets in all of my MMA code. Stackexchange mangles it, so have to use a picture to demonstrate:



            enter image description here



            Big difference in readability.






            share|improve this answer









            $endgroup$












            • $begingroup$
              Also, you can put them in the subscript and they work equally. And if it's still not enough, you can use the invisible comma to separate indices. ;-)
              $endgroup$
              – Veky
              Apr 27 at 3:53










            • $begingroup$
              It’s probably worth adding how to enter these doubled brackets using the keyboard: Esc–[–[–Esc.
              $endgroup$
              – Stephen Powell
              Apr 27 at 9:17













            6












            6








            6





            $begingroup$

            The other thing I do is to use the stylized brackets in all of my MMA code. Stackexchange mangles it, so have to use a picture to demonstrate:



            enter image description here



            Big difference in readability.






            share|improve this answer









            $endgroup$



            The other thing I do is to use the stylized brackets in all of my MMA code. Stackexchange mangles it, so have to use a picture to demonstrate:



            enter image description here



            Big difference in readability.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 26 at 18:04









            MikeYMikeY

            3,903916




            3,903916











            • $begingroup$
              Also, you can put them in the subscript and they work equally. And if it's still not enough, you can use the invisible comma to separate indices. ;-)
              $endgroup$
              – Veky
              Apr 27 at 3:53










            • $begingroup$
              It’s probably worth adding how to enter these doubled brackets using the keyboard: Esc–[–[–Esc.
              $endgroup$
              – Stephen Powell
              Apr 27 at 9:17
















            • $begingroup$
              Also, you can put them in the subscript and they work equally. And if it's still not enough, you can use the invisible comma to separate indices. ;-)
              $endgroup$
              – Veky
              Apr 27 at 3:53










            • $begingroup$
              It’s probably worth adding how to enter these doubled brackets using the keyboard: Esc–[–[–Esc.
              $endgroup$
              – Stephen Powell
              Apr 27 at 9:17















            $begingroup$
            Also, you can put them in the subscript and they work equally. And if it's still not enough, you can use the invisible comma to separate indices. ;-)
            $endgroup$
            – Veky
            Apr 27 at 3:53




            $begingroup$
            Also, you can put them in the subscript and they work equally. And if it's still not enough, you can use the invisible comma to separate indices. ;-)
            $endgroup$
            – Veky
            Apr 27 at 3:53












            $begingroup$
            It’s probably worth adding how to enter these doubled brackets using the keyboard: Esc–[–[–Esc.
            $endgroup$
            – Stephen Powell
            Apr 27 at 9:17




            $begingroup$
            It’s probably worth adding how to enter these doubled brackets using the keyboard: Esc–[–[–Esc.
            $endgroup$
            – Stephen Powell
            Apr 27 at 9:17



            Popular posts from this blog

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company