public __vntype__ MatrixColumnIndexer__mth__()
        {
            __vntype__ accum = __vntype__.Zero;

            for (int i = 0; i < count; i++)
            {
                accum += matrices[i].Col__mth__(indices[i].X);
            }

            return(accum);
        }
示例#2
0
 //# if (m == n) {
 public static __vmtype__ TransposedMultiply(__vntype__ v, __nmtype__ m)
 {
     return(new __vmtype__(/*# m.ForEach(q => { */
                /*# n.ForEach(r => { var f = fields[r]; */ v.__f__ * m.M__r____q__ /*# },
                                                                                    * add); }, comma); */));
 }
示例#3
0
 public static __nmtype__ FromCols(/*# m.ForEach(r => {*/ __vntype__ col__r__ /*#}, comma); */)
 {
     return(new __nmtype__(/*# n.ForEach(r => { */
                /*# m.ForEach(c => { var rf = fields[r]; */ col__c__.__rf__ /*#}, comma);}, comma); */));
 }