public Tensor Renormalise(Tensor IN, Tensor mean, Tensor std, Tensor OUT) { if (IN.GetRows() != mean.GetRows() || IN.GetRows() != std.GetRows() || IN.GetCols() != mean.GetCols() || IN.GetCols() != std.GetCols()) { Debug.Log("Incompatible dimensions for renormalisation."); return(IN); } else { Eigen.Renormalise(IN.Ptr, mean.Ptr, std.Ptr, OUT.Ptr); return(OUT); } }
public Matrix Renormalise(Matrix IN, Matrix mean, Matrix std, Matrix OUT) { if (IN.GetRows() != mean.GetRows() || IN.GetRows() != std.GetRows() || IN.GetCols() != mean.GetCols() || IN.GetCols() != std.GetCols()) { Debug.Log("Incompatible dimensions for renormalisation."); return(IN); } else { Eigen.Renormalise(IN.Ptr, mean.Ptr, std.Ptr, OUT.Ptr); return(OUT); } }
public Tensor Renormalise(Tensor IN, Tensor mean, Tensor std, Tensor OUT) { Eigen.Renormalise(IN.Ptr, mean.Ptr, std.Ptr, OUT.Ptr); return(OUT); }