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
$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]]
matrix notation
$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
add a comment |
$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]]
matrix notation
$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
$begingroup$
If the last dimension ofthreePoints
is two, then you might try something likeMatrixRank[threepoints[[i, 2 ;; 3]] - threepoints[[i, 1]]]
.
$endgroup$
– WReach
Apr 26 at 18:29
add a comment |
$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]]
matrix notation
$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
matrix notation
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
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
$begingroup$
If the last dimension ofthreePoints
is two, then you might try something likeMatrixRank[threepoints[[i, 2 ;; 3]] - threepoints[[i, 1]]]
.
$endgroup$
– WReach
Apr 26 at 18:29
add a comment |
$begingroup$
If the last dimension ofthreePoints
is two, then you might try something likeMatrixRank[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
add a comment |
2 Answers
2
active
oldest
votes
$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]]
$endgroup$
add a comment |
$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:
Big difference in readability.
$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
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$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]]
$endgroup$
add a comment |
$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]]
$endgroup$
add a comment |
$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]]
$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]]
edited Apr 26 at 18:50
answered Apr 26 at 15:33
RomanRoman
7,14511134
7,14511134
add a comment |
add a comment |
$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:
Big difference in readability.
$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
add a comment |
$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:
Big difference in readability.
$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
add a comment |
$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:
Big difference in readability.
$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:
Big difference in readability.
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
add a comment |
$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
add a comment |
$begingroup$
If the last dimension of
threePoints
is two, then you might try something likeMatrixRank[threepoints[[i, 2 ;; 3]] - threepoints[[i, 1]]]
.$endgroup$
– WReach
Apr 26 at 18:29