Lines Matching defs:matrix
3295 // lambda to visit a matrix argument's components
3351 // Optimize matrix constructed from a bigger matrix
3353 // To truncate the matrix to a smaller number of rows/columns, we need to:
3355 // 2. Assemble the resulting matrix from all columns
3356 Id matrix = sources[0];
3358 Id sourceColumnTypeId = getContainedTypeId(getTypeId(matrix));
3368 Id colv = createCompositeExtract(matrix, sourceColumnTypeId, indexes);
3371 if (numRows != getNumRows(matrix)) {
3383 // 2. construct a matrix from that array
3387 // initialize the array to the identity matrix
3406 // constructing from another matrix; copy over the parts that exist in both the argument and constructee
3407 Id matrix = sources[0];
3408 int minCols = std::min(numCols, getNumColumns(matrix));
3409 int minRows = std::min(numRows, getNumRows(matrix));
3415 ids[col][row] = createCompositeExtract(matrix, componentTypeId, indexes);
3421 // fill in the matrix in column-major order with whatever argument components are available
3438 // If more components are provided than fit the matrix, discard the rest.
3445 // Step 2: Construct a matrix from that array.
3446 // First make the column vectors, then make the matrix.
3460 // make the matrix