Conversation
…xing, where Agent-Logs-Url: https://github.com/Quafadas/vecxt/sessions/039e1616-72d6-4f72-b5a0-13322445a4cc Co-authored-by: Quafadas <24899792+Quafadas@users.noreply.github.com>
|
@copilot can you check the failiing tests on native ? |
…erasure conflicts Issue 1: Remove import vecxt.BooleanArrays.* from ndarrayBooleanOps.scala to avoid scope conflict where local NDArray[Boolean] extension methods (any, all, Replace all delegations with inline while loops. Also fix in-place ops to check isColMajor instead of isContiguous so that row-major transposed arrays correctly throw InvalidNDArray. Issue 2: Add @TargetNAME annotations to all extension methods on NDArray[Int] and NDArray[Float] that produce type-erasure 'double definition' conflicts on Scala Native when exported together (NDArray[T] erases to NDArray for all T). - ndarrayIntOps.scala: annotate binary ops, unary ops, in-place ops, comparisons - ndarrayIntReductions.scala: add import + annotate all full/axis reductions - ndarrayFloatOps.scala: annotate binary ops, unary ops, in-place ops, comparisons - ndarrayFloatReductions.scala: add import + annotate all full/axis reductions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Quafadas <24899792+Quafadas@users.noreply.github.com>
Fixed in e20d97b. Two issues on native:
|
NDArray[Double]axisargmax/argminreturn type toNDArray[Int]ndarrayIntOps.scala—NDArray[Int]element-wise opsndarrayIntReductions.scala—NDArray[Int]reductionsndarrayBooleanOps.scala—NDArray[Boolean]logical ops + reductionsndarrayFloatOps.scala—NDArray[Float]element-wise opsndarrayFloatReductions.scala—NDArray[Float]reductionsndarrayBooleanIndexing.scala— boolean mask indexingndarrayWhere.scala— conditionalwhereall.scalaexports updatedimport vecxt.BooleanArrays.*fromndarrayBooleanOps.scala; replaceda.data.not,a.data.any,a.data.allTrue,a.data.trues,a.data.not!delegations with inline while loops to avoid local extension name shadowing@targetNameannotations to allNDArray[Int]andNDArray[Float]extension methods that conflict after type erasure when exported toall.scala(same method names asNDArray[Double]extensions —product,sum,mean,min,max,argmax,argmin,neg,abs,+,-,*,/,>,<,>=,<=,=:=,!:=,+=,-=,*=etc.)