New answers tagged sorting
3
votes
Ordered list of integer vectors
Thanks to LukasLang:
ReverseSortBy[Tuples[Range[-nmax, nmax], n], Count[#, 0] &]
does the job. Here nmax = $N$ from the ...
5
votes
Accepted
Dropping non-commutative product in the end
You can simply replace NonCommutativeMultiply by Times as follows:
...
3
votes
Accepted
substitution $A \mapsto A + \delta_A$ with some operator $\delta_A$
There are many possibilities. Here is an ad-hoc proposal. It uses transformation rules and **. It is limited to what OP asked for. It would have to be extended to ...
9
votes
Accepted
sorting vector elements of a list by certain rules
This can be done using the Graph functionality of Mathematica (note that this approach might not scale really well to long lists):
...
Top 50 recent answers are included
Related Tags
sorting × 376list-manipulation × 146
matrix × 31
order × 22
plotting × 19
performance-tuning × 18
functions × 17
string-manipulation × 12
dataset × 10
import × 8
linear-algebra × 8
output-formatting × 8
associations × 8
gathering × 8
programming × 7
polynomials × 7
filtering × 7
eigenvalues × 7
graphs-and-networks × 6
data × 6
code-request × 6
algorithm × 6
function-construction × 5
computational-geometry × 5
combinatorics × 5