Exemple #1
0
        private static TypeSymbol ResolveIntrinsicMatrixType(MatrixTypeSyntax type)
        {
            var matrixType = SyntaxFacts.GetMatrixType(type.TypeToken.Kind);
            var scalarType = matrixType.Item1;
            var numRows    = matrixType.Item2;
            var numCols    = matrixType.Item3;

            return(IntrinsicTypes.GetMatrixType(scalarType, numRows, numCols));
        }