public IEnumerable <Matrix> Fwd(IEnumerable <Matrix> inputs) { return(BlockTransformer.Transform(inputs, m => T * m * T.Transpose())); }
public IEnumerable <Matrix> Fwd(IEnumerable <Matrix> inputs) { return (BlockTransformer.Transform(inputs.Take(1), x => Quantize(x, ym, -1)) .Concat(BlockTransformer.Transform(inputs.Skip(1), x => Quantize(x, crcbm, -1)))); }
public IEnumerable <Matrix> Back(IEnumerable <Matrix> matrices) { return(BlockTransformer.Transform(matrices, m => T.Transpose() * m * T)); }
public IEnumerable <Matrix> Back(IEnumerable <Matrix> matrices) { return (BlockTransformer.Transform(matrices.Take(1), x => Quantize(x, ym, 1)) .Concat(BlockTransformer.Transform(matrices.Skip(1), x => Quantize(x, crcbm, 1)))); }