Lines Matching full:comps
77 def combineVec(comps):
79 for ndx in range(len(comps[0])):
80 # for x in comps:
82 scalars = reduce(operator.add, [x[ndx].toFloat().getScalars() for x in comps])
87 def combineIVec(comps):
89 for ndx in range(len(comps[0])):
90 res.append(Vec.fromScalarList(reduce(operator.add, [x[ndx].toInt().getScalars() for x in comps])))
93 def combineBVec(comps):
95 for ndx in range(len(comps[0])):
96 res.append(Vec.fromScalarList(reduce(operator.add, [x[ndx].toBool().getScalars() for x in comps])))
99 def combineMat(numCols, numRows, comps):
101 for ndx in range(len(comps[0])):
102 scalars = reduce(operator.add, [x[ndx].toFloat().getScalars() for x in comps])
106 def combineMat2(comps): return combineMat(2, 2, comps)
107 def combineMat3(comps): return combineMat(3, 3, comps)
108 def combineMat4(comps): return combineMat(4, 4, comps)
284 for comps in inCompLists:
285 maxLen = reduce(max, [len(values) for values in comps])
286 comps = [repeatToLength(values, maxLen) for values in comps]
287 comps = [shuffled(values) for values in comps]
289 res += [CombineCase(comps, combFunc)]