One Hat Cyber Team
Your IP :
216.73.216.135
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
Macaulay2
/
Core
/
tests
/
Edit File:
mutmat3.m2
-- From email from Josephine Yu, 10-27-09 M = matrix {{1.}} -- over RR MM = mutableMatrix M rowMult(MM,0,3); M -- becomes matrix {{1.5}} MM -- correct assert(M == matrix {{1.}}) assert(matrix MM == matrix mutableMatrix {{3.}}) -- sparse matrices are OK M = matrix {{1.}} -- over RR MM = mutableMatrix(M, Dense=>false) rowMult(MM,0,3); M -- becomes matrix {{1.5}} MM -- correct assert(M == matrix {{1.}}) assert(matrix MM == matrix mutableMatrix {{3.}}) -- dense matrices are not M = matrix {{1.}} -- over RR MM = mutableMatrix(M, Dense=>true) rowMult(MM,0,3); M -- becomes matrix {{1.5}} MM -- correct assert(M == matrix {{1.}}) assert(matrix MM == matrix mutableMatrix {{3.}}) --- Over CC -- sparse matrices over CC M = matrix {{1.+ii}} -- over CC MM = mutableMatrix(M, Dense=>false) rowMult(MM,0,3); M -- used to become matrix {{1.5}} MM -- was wrong at one time. assert(M == matrix {{1.+ii}}) assert(matrix MM == matrix mutableMatrix {{3.+3.*ii}}) -- sparse matrices over CC M = matrix {{1.+ii}} -- over CC MM = mutableMatrix(M, Dense=>false) rowMult(MM,0,3.+0.0*ii); -- wrong!! M -- ok assert(M == matrix {{1.+ii}}) assert(matrix MM == matrix mutableMatrix {{3.+3.*ii}}) -- dense matrices are not M = matrix {{1.}} -- over RR MM = mutableMatrix(M, Dense=>true) rowMult(MM,0,3); M -- becomes matrix {{1.5}} MM -- correct assert(M == matrix {{1.}}) assert(matrix MM == matrix mutableMatrix {{3.}}) ------------------------- M = matrix {{1}} -- over ZZ MM = mutableMatrix M rowMult(MM,0,3); M -- still {{1}} MM -- also ok assert(M == matrix {{1}}) assert(matrix MM == matrix mutableMatrix {{3}}) M = matrix {{1.}} MM = new MutableMatrix from M rowMult(MM,0,3); M -- still {{1}} MM assert(M == matrix {{1.}}) assert(matrix MM == matrix mutableMatrix {{3.}}) R = ZZ/101[x] M = matrix {{1_R}} MM = mutableMatrix M rowMult(MM,0,x); M -- still {{1}} MM -- also ok assert(M == matrix {{1_R}}) assert(matrix MM == matrix mutableMatrix {{x}})
Simpan