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

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

            Why did Thanos need his ship to help him in the battle scene?Which actor plays Thanos in the Avengers mid-credits scene?Are there economic implications portrayed in comics where the buildings and cities are ruined almost daily?Old X-Men comic where team travels to alien world with a ring-like sun that needs recharging?Why does Ego need help sleeping?Is there an objective answer to who “the strongest Avenger” is?How did Banner get unstuck?Why did Thanos get hit?How did Thanos (or anyone) know the Infinity Stones would give him this power?Did Thanos leave Eitri alive for his after-sales service?In Avengers 1, why does Thanos need Loki?