Skip to content

Matrixc View operations mutates elements outside it #122

Description

@Quafadas

@copilot

def `sqrt!`: Unit =
  if m.hasSimpleContiguousMemoryLayout then vecxt.doublearrays.`sqrt!`(m.raw)
  end if                       // ← no else
  var i = 0
  while ... m.raw(idx) = Math.sqrt(m.raw(idx))

in vecxt/src/doublematrix.scala

Please fix this to have the else clause. Also for sin! and cos!.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions