예제 #1
0
        public static ListDouble operator *(ListDouble arg0, double arg1)
        {
            ListDouble outputList = new ListDouble();

            for (int i = 0; i < arg0.Count; i++)
            {
                outputList.Add(arg0[i] * arg1);
            }

            return(outputList);
        }
예제 #2
0
        public static ListDouble operator +(ListDouble arg0, ListDouble arg1)
        {
            ListDouble outputList = new ListDouble();

            if (arg0.Count == arg1.Count && arg0.Count > 0)
            {
                for (int i = 0; i < arg0.Count; i++)
                {
                    outputList.Add(arg0[i] + arg1[i]);
                }
            }

            return(outputList);
        }