コード例 #1
0
            internal InternalBla(ConstantXTemporalOperator __Owner, UnsetteledCoordinateMapping DomainVarMap, IList <DGField> ParameterMap, UnsetteledCoordinateMapping CodomainVarMap)
            {
                this.DomainMapping   = DomainVarMap;
                this.Parameters      = ParameterMap;
                this.CodomainMapping = CodomainVarMap;
                m_Owner = __Owner;

                if (DomainMapping.NoOfVariables != Owner.DomainVar.Count)
                {
                    throw new ArgumentException("Mismatch in number of domain variables.");
                }
                if (CodomainMapping.NoOfVariables != Owner.CodomainVar.Count)
                {
                    throw new ArgumentException("Mismatch in number of codomain variables.");
                }

                if (ParameterMap.Count != Owner.ParameterVar.Count)
                {
                    throw new ArgumentException("Mismatch in number of parameter variables.");
                }

                if (!DomainVarMap.EqualsPartition(CodomainVarMap))
                {
                    throw new ArgumentException("Only supported for square matrices - domain and codomain map are not compatible (e.g. different number of rows and columns.");
                }
            }