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

            Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos

            Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020