public __vmtype__ MatrixRowIndexer__mth__() { __vmtype__ accum = __vmtype__.Zero; for (int i = 0; i < count; i++) { accum += matrices[i].Row__mth__(indices[i].X); } return(accum); }
//# } //# } //# } #endregion #region Matrix/Vector Multiplication public static __vntype__ Multiply(__nmtype__ m, __vmtype__ v) { return(new __vntype__(/*# n.ForEach(r => { */ /*# m.ForEach(q => { var f = fields[q]; */ m.M__r____q__ * v.__f__ /*# }, * add); }, comma); */)); }
public static __nmtype__ FromRows(/*# n.ForEach(r => {*/ __vmtype__ row__r__ /*#}, comma); */) { return(new __nmtype__(/*# n.ForEach(r => { */ /*# mfields.ForEach(f => {*/ row__r__.__f__ /*#}, comma);}, comma); */)); }