hi, i am new to scala language and i am trying to code
import breeze.linalg._
var x0=DenseMatrix((-3),(7))
var xa=x0
var A=DenseMatrix((4,2),(2,2))
var b=DenseMatrix((-1),(1))
var a=0
// import following package
import scala.util.control._
// create a Breaks object as follows
val loop = new Breaks;
loop.breakable()
{
for (a <- 0 to 10) {
val g1: Any = ((A * x0) - b).toDenseMatrix
val gt = {
g1.t
}
val alp = gt * (g1 \ gt * A * g1)
val xn = x0 - (alp * g1)
xa = DenseMatrix.horzcat(xa, xn)
var x = xn
var e = norm(A * xn - b, 2)
if (e < 0.001) {
loop.break()
}
}
}
i am getting various erros when i run this
No implicit arguments of type: CanTranspose[Any, That_]
**Cannot resolve symbol * **
No implicit arguments of type: OpSolveMatrixBy.Impl2[Any, B_, That_]
**Cannot resolve symbol * **
**Cannot resolve symbol * **
**Cannot resolve symbol * **
No implicit arguments of type: OpMulMatrix.Impl2[DenseMatrix[Int], B_, That_]
Cannot resolve symbol -
Cannot resolve symbol <
i am uncertain exactly why these errors are showing since there arent any syntax errors given.