rls algorithm

what is wrong with this code???
#include <BasicLinearAlgebra.h>

#include <MatrixMath.h>
#include <Wire.h>
unsigned long StartTime = 0;
Matrix<1,3,int> w={0,0,0};
Matrix<1,3,int> y={0,0,0.3208};
float arrayR[3][3]={
Matrix<3,3> R(arrayR);
Matrix<1,1,float> x={1};
int lambda=0.99;
Matrix<3,1> y_T=~y;
Matrix<3,1> w_T=~w

void setup()
{ Serial.begin(9600);
Wire.begin (1);
Wire.onReceive (receiveEvent);
pinMode (13, OUTPUT);
} // end of setup

void loop()
// unsigned long StartTime = millis();
Matrix<3,1,float> u=Ry_T;
Matrix<1,1,int> s=lambda+y
Matrix<3,1,float> k=u/s;
Matrix<1,1,float> z=wy_T;
Matrix<1,1,float> e=x-z;
Matrix<3,1,float> w=w+k

Wire.beginTransmission (2);
Wire.write (w);
Wire.endTransmission ();

void receiveEvent (int howMany)

byte b = Wire.read ();
unsigned long CurrentTime = millis();
unsigned long ElapsedTime = CurrentTime - StartTime;
digitalWrite (13, b);

} // end of receiveEvent

what is wrong with this code?

You forgot the code tags.
You didn't tell us what the compiler said

Your first mistake is trying to use two different libraries to do the same thing. Get rid of this statement:

#include <MatrixMath.h>

What you’ve written will not work with the Matrixmath library.

Now read the file HowtoUse.ino which is in the library’s examples folder. It explains how to do a transpose.

I have no idea what that code is supposed to do (another thing you forgot to tell us) but these statements look wrong.

matrix_math_1:9: error: conversion from 'double' to non-scalar type 'Matrix<1, 3, int>' requested

 Matrix<1, 3, int> y[] = {0, 0, 0.3208};

Why are you initializing the third element to 0.3208 when you’ve declared the matrix to be integer?

C:\Users\Peter\Documents\Arduino\junk\matrix_math_1\matrix_math_1.ino:16:27: warning: invalid conversion from 'int' to 'float (*)[1]' [-fpermissive]

 Matrix<1, 1, float> x = {1};

And here you have exactly the opposite problem.

Before you post any more code, read How to post code properly and use code tags.


    digitalWrite (13, b);

The first two writes won't be active long enough to see anything. The LED will be off 99.999% of the time.