Browse files

headers, namespaces, StyleCop

  • Loading branch information...
1 parent 19ca520 commit f0d58676a88b12c636ed49a0248fb0b68ed3fecc @cdrnet cdrnet committed Jan 26, 2009
View
1 .gitignore
@@ -1,5 +1,6 @@
*.suo
*.user
+*.Cache
bin
obj
.svn
View
43 src/app/MathNet.Palladium/ExpressionAlgebra/Arithmeric.cs
@@ -1,10 +1,41 @@
-using System;
+//-----------------------------------------------------------------------
+// <copyright file="Arithmetic.cs" company="Math.NET Project">
+// Copyright (c) 2002-2009, Christoph Rüegg.
+// All Right Reserved.
+// </copyright>
+// <author>
+// Christoph Rüegg, http://christoph.ruegg.name
+// </author>
+// <product>
+// Math.NET Palladium, part of the Math.NET Project.
+// http://mathnet.opensourcedotnet.info
+// </product>
+// <license type="opensource" name="LGPL" version="2 or later">
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published
+// by the Free Software Foundation; either version 2 of the License, or
+// any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// </license>
+//-----------------------------------------------------------------------
+
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
-namespace MathNet.Palladium.ExpressionAlgebra
+namespace MathNet.ExpressionAlgebra
{
+ /// <summary>
+ /// Arithmetic Expression Builder
+ /// </summary>
public static class Arithmeric
{
public static Expression Zero()
@@ -65,7 +96,6 @@ public static Expression Negate(Expression term)
public static Expression Multiply(params Expression[] terms)
{
-
TypeInference type = new TypeInference(terms);
List<Expression> factors = type.CastToMaxNumeric()
.Where(x => !Elementary.IsConstantOne(x))
@@ -98,15 +128,18 @@ public static Expression Divide(Expression a, Expression b)
public static Expression Invert(Expression term)
{
- // TODO: automatic simplification
+ if(term.NodeType == ExpressionType.Divide)
+ {
+ BinaryExpression binary = (BinaryExpression)term;
+ return Divide(binary.Right, binary.Left);
+ }
return Divide(Expression.Constant(1), term);
}
public static Expression Power(Expression a, Expression b)
{
// TODO: automatic simplification
-
TypeInference type = new TypeInference(a, b);
List<Expression> expressions = type.CastToMaxNumericList();
return Expression.Power(expressions[0], expressions[1]);
View
38 src/app/MathNet.Palladium/ExpressionAlgebra/AutoSimplify.cs
@@ -1,11 +1,39 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
+//-----------------------------------------------------------------------
+// <copyright file="AutoSimplify.cs" company="Math.NET Project">
+// Copyright (c) 2002-2009, Christoph Rüegg.
+// All Right Reserved.
+// </copyright>
+// <author>
+// Christoph Rüegg, http://christoph.ruegg.name
+// </author>
+// <product>
+// Math.NET Palladium, part of the Math.NET Project.
+// http://mathnet.opensourcedotnet.info
+// </product>
+// <license type="opensource" name="LGPL" version="2 or later">
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published
+// by the Free Software Foundation; either version 2 of the License, or
+// any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// </license>
+//-----------------------------------------------------------------------
+
using System.Linq.Expressions;
-namespace MathNet.Palladium.ExpressionAlgebra
+namespace MathNet.ExpressionAlgebra
{
+ /// <summary>
+ /// Automatic Algebraic Expression Simplification.
+ /// </summary>
public static class AutoSimplify
{
/// <summary>
View
33 src/app/MathNet.Palladium/ExpressionAlgebra/Elementary.cs
@@ -1,8 +1,37 @@
-using System;
+//-----------------------------------------------------------------------
+// <copyright file="Elementary.cs" company="Math.NET Project">
+// Copyright (c) 2002-2009, Christoph Rüegg.
+// All Right Reserved.
+// </copyright>
+// <author>
+// Christoph Rüegg, http://christoph.ruegg.name
+// </author>
+// <product>
+// Math.NET Palladium, part of the Math.NET Project.
+// http://mathnet.opensourcedotnet.info
+// </product>
+// <license type="opensource" name="LGPL" version="2 or later">
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published
+// by the Free Software Foundation; either version 2 of the License, or
+// any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// </license>
+//-----------------------------------------------------------------------
+
+using System;
using System.Collections.Generic;
using System.Linq.Expressions;
-namespace MathNet.Palladium.ExpressionAlgebra
+namespace MathNet.ExpressionAlgebra
{
using MathNet.Numerics;
View
33 src/app/MathNet.Palladium/ExpressionAlgebra/Exponential.cs
@@ -1,7 +1,36 @@
-using System;
+//-----------------------------------------------------------------------
+// <copyright file="Exponential.cs" company="Math.NET Project">
+// Copyright (c) 2002-2009, Christoph Rüegg.
+// All Right Reserved.
+// </copyright>
+// <author>
+// Christoph Rüegg, http://christoph.ruegg.name
+// </author>
+// <product>
+// Math.NET Palladium, part of the Math.NET Project.
+// http://mathnet.opensourcedotnet.info
+// </product>
+// <license type="opensource" name="LGPL" version="2 or later">
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published
+// by the Free Software Foundation; either version 2 of the License, or
+// any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// </license>
+//-----------------------------------------------------------------------
+
+using System;
using System.Linq.Expressions;
-namespace MathNet.Palladium.ExpressionAlgebra
+namespace MathNet.ExpressionAlgebra
{
public static class Exponential
{
View
33 src/app/MathNet.Palladium/ExpressionAlgebra/ExpressionBuilder.cs
@@ -1,9 +1,38 @@
-using System;
+//-----------------------------------------------------------------------
+// <copyright file="ExpressionBuilder.cs" company="Math.NET Project">
+// Copyright (c) 2002-2009, Christoph Rüegg.
+// All Right Reserved.
+// </copyright>
+// <author>
+// Christoph Rüegg, http://christoph.ruegg.name
+// </author>
+// <product>
+// Math.NET Palladium, part of the Math.NET Project.
+// http://mathnet.opensourcedotnet.info
+// </product>
+// <license type="opensource" name="LGPL" version="2 or later">
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published
+// by the Free Software Foundation; either version 2 of the License, or
+// any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// </license>
+//-----------------------------------------------------------------------
+
+using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;
-namespace MathNet.Palladium.ExpressionAlgebra
+namespace MathNet.ExpressionAlgebra
{
internal static class ExpressionBuilder
{
View
54 src/app/MathNet.Palladium/ExpressionAlgebra/PartialDerivative.cs
@@ -1,9 +1,38 @@
-using System;
+//-----------------------------------------------------------------------
+// <copyright file="PartialDerivative.cs" company="Math.NET Project">
+// Copyright (c) 2002-2009, Christoph Rüegg.
+// All Right Reserved.
+// </copyright>
+// <author>
+// Christoph Rüegg, http://christoph.ruegg.name
+// </author>
+// <product>
+// Math.NET Palladium, part of the Math.NET Project.
+// http://mathnet.opensourcedotnet.info
+// </product>
+// <license type="opensource" name="LGPL" version="2 or later">
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published
+// by the Free Software Foundation; either version 2 of the License, or
+// any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// </license>
+//-----------------------------------------------------------------------
+
+using System;
using System.Linq.Expressions;
-namespace MathNet.Palladium.ExpressionAlgebra
+namespace MathNet.ExpressionAlgebra
{
- using MathNet.Palladium.ExpressionAlgebra.Visitors;
+ using MathNet.ExpressionAlgebra.Visitors;
/// <remarks>
/// This class is stateful and not thread safe, therefore never share an instance
@@ -43,17 +72,17 @@ protected override Expression VisitConstant(ConstantExpression c)
protected override Expression VisitMultiply(BinaryExpression binaryExpression)
{
- Expression leftDerivative = base.Visit(binaryExpression.Left);
- Expression rightDerivative = base.Visit(binaryExpression.Right);
+ Expression leftDerivative = Visit(binaryExpression.Left);
+ Expression rightDerivative = Visit(binaryExpression.Right);
return Arithmeric.Add(
Arithmeric.Multiply(leftDerivative, binaryExpression.Right),
Arithmeric.Multiply(rightDerivative, binaryExpression.Left));
}
protected override Expression VisitDivide(BinaryExpression binaryExpression)
{
- Expression leftDerivative = base.Visit(binaryExpression.Left);
- Expression rightDerivative = base.Visit(binaryExpression.Right);
+ Expression leftDerivative = Visit(binaryExpression.Left);
+ Expression rightDerivative = Visit(binaryExpression.Right);
return Arithmeric.Subtract(
Arithmeric.Divide(leftDerivative, binaryExpression.Right),
Arithmeric.Divide(
@@ -63,8 +92,8 @@ protected override Expression VisitDivide(BinaryExpression binaryExpression)
protected override Expression VisitPower(BinaryExpression binaryExpression)
{
- Expression leftDerivative = base.Visit(binaryExpression.Left);
- Expression rightDerivative = base.Visit(binaryExpression.Right);
+ Expression leftDerivative = Visit(binaryExpression.Left);
+ Expression rightDerivative = Visit(binaryExpression.Right);
return Arithmeric.Multiply(
binaryExpression,
Arithmeric.Add(
@@ -83,24 +112,25 @@ protected override Expression VisitMethodCall(MethodCallExpression m)
case "Sin":
case "Sine":
{
- Expression innerDerivative = base.Visit(m.Arguments[0]);
+ Expression innerDerivative = Visit(m.Arguments[0]);
return Arithmeric.Multiply(
innerDerivative,
Trigonometry.Cosine(m.Arguments[0]));
}
+
case "Cos":
case "Cosine":
{
- Expression innerDerivative = base.Visit(m.Arguments[0]);
+ Expression innerDerivative = Visit(m.Arguments[0]);
return Arithmeric.Negate(
Arithmeric.Multiply(
innerDerivative,
Trigonometry.Sine(m.Arguments[0])));
}
+
default:
throw new NotSupportedException(String.Format("Method Call to {0} is not supported.", m.ToString()));
}
-
}
}
}
View
36 src/app/MathNet.Palladium/ExpressionAlgebra/Trigonometry.cs
@@ -1,10 +1,42 @@
-using System;
+//-----------------------------------------------------------------------
+// <copyright file="Trigonometry.cs" company="Math.NET Project">
+// Copyright (c) 2002-2009, Christoph Rüegg.
+// All Right Reserved.
+// </copyright>
+// <author>
+// Christoph Rüegg, http://christoph.ruegg.name
+// </author>
+// <product>
+// Math.NET Palladium, part of the Math.NET Project.
+// http://mathnet.opensourcedotnet.info
+// </product>
+// <license type="opensource" name="LGPL" version="2 or later">
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published
+// by the Free Software Foundation; either version 2 of the License, or
+// any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// </license>
+//-----------------------------------------------------------------------
+
+using System;
using System.Linq.Expressions;
-namespace MathNet.Palladium.ExpressionAlgebra
+namespace MathNet.ExpressionAlgebra
{
using MathNet.Numerics;
+ /// <summary>
+ /// Trigonometric Expression Builder
+ /// </summary>
public static class Trigonometry
{
static readonly Type _trigType = typeof(Trig);
View
36 src/app/MathNet.Palladium/ExpressionAlgebra/TypeInference.cs
@@ -1,10 +1,38 @@
-using System;
+//-----------------------------------------------------------------------
+// <copyright file="TypeInference.cs" company="Math.NET Project">
+// Copyright (c) 2002-2009, Christoph Rüegg.
+// All Right Reserved.
+// </copyright>
+// <author>
+// Christoph Rüegg, http://christoph.ruegg.name
+// </author>
+// <product>
+// Math.NET Palladium, part of the Math.NET Project.
+// http://mathnet.opensourcedotnet.info
+// </product>
+// <license type="opensource" name="LGPL" version="2 or later">
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published
+// by the Free Software Foundation; either version 2 of the License, or
+// any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// </license>
+//-----------------------------------------------------------------------
+
+using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
using System.Linq.Expressions;
-namespace MathNet.Palladium.ExpressionAlgebra
+namespace MathNet.ExpressionAlgebra
{
internal class TypeInference
{
@@ -66,7 +94,7 @@ public static Type MaxNumeric(Type a, Type b)
public static Type MaxNumeric(IEnumerable<Type> types)
{
- Type max = typeof(Int32);
+ Type max = typeof(int);
foreach(Type type in types)
{
View
36 src/app/MathNet.Palladium/ExpressionAlgebra/Visitors/AlgebraicVisitor.cs
@@ -1,6 +1,35 @@
-using System.Linq.Expressions;
-
-namespace MathNet.Palladium.ExpressionAlgebra.Visitors
+//-----------------------------------------------------------------------
+// <copyright file="AlgebraicVisitor.cs" company="Math.NET Project">
+// Copyright (c) 2002-2009, Christoph Rüegg.
+// All Right Reserved.
+// </copyright>
+// <author>
+// Christoph Rüegg, http://christoph.ruegg.name
+// </author>
+// <product>
+// Math.NET Palladium, part of the Math.NET Project.
+// http://mathnet.opensourcedotnet.info
+// </product>
+// <license type="opensource" name="LGPL" version="2 or later">
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published
+// by the Free Software Foundation; either version 2 of the License, or
+// any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// </license>
+//-----------------------------------------------------------------------
+
+using System.Linq.Expressions;
+
+namespace MathNet.ExpressionAlgebra.Visitors
{
/// <summary>
/// Alebraic Linq Expression Visitor Base
@@ -107,7 +136,6 @@ protected virtual Expression VisitDivide(BinaryExpression term)
protected virtual Expression VisitPower(BinaryExpression term)
{
-
Expression newLeft = Visit(term.Left);
Expression newRight = Visit(term.Right);
if(newLeft != term.Left || newRight != term.Right)
View
40 src/app/MathNet.Palladium/ExpressionAlgebra/Visitors/ExpressionVisitor.cs
@@ -1,9 +1,38 @@
-using System;
+//-----------------------------------------------------------------------
+// <copyright file="ExpressionVisitor.cs" company="Math.NET Project">
+// Copyright (c) 2002-2009, Christoph Rüegg.
+// All Right Reserved.
+// </copyright>
+// <author>
+// Christoph Rüegg, http://christoph.ruegg.name
+// </author>
+// <product>
+// Math.NET Palladium, part of the Math.NET Project.
+// http://mathnet.opensourcedotnet.info
+// </product>
+// <license type="opensource" name="LGPL" version="2 or later">
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published
+// by the Free Software Foundation; either version 2 of the License, or
+// any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// </license>
+//-----------------------------------------------------------------------
+
+using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq.Expressions;
-namespace MathNet.Palladium.ExpressionAlgebra.Visitors
+namespace MathNet.ExpressionAlgebra.Visitors
{
/// <summary>
/// Linq Expression Visitor Base
@@ -138,9 +167,13 @@ protected virtual Expression VisitBinary(BinaryExpression b)
if(left != b.Left || right != b.Right || conversion != b.Conversion)
{
if(b.NodeType == ExpressionType.Coalesce && b.Conversion != null)
+ {
return Expression.Coalesce(left, right, conversion as LambdaExpression);
+ }
else
+ {
return Expression.MakeBinary(b.NodeType, left, right, b.IsLiftedToNull, b.Method);
+ }
}
return b;
@@ -222,6 +255,7 @@ protected virtual ReadOnlyCollection<Expression> VisitExpressionList(ReadOnlyCol
{
list.Add(original[j]);
}
+
list.Add(p);
}
}
@@ -285,6 +319,7 @@ protected virtual IEnumerable<MemberBinding> VisitBindingList(ReadOnlyCollection
{
list.Add(original[j]);
}
+
list.Add(b);
}
}
@@ -314,6 +349,7 @@ protected virtual IEnumerable<ElementInit> VisitElementInitializerList(ReadOnlyC
{
list.Add(original[j]);
}
+
list.Add(init);
}
}
View
2 src/app/MathNet.Palladium/MathNet.Palladium.csproj
@@ -8,7 +8,7 @@
<ProjectGuid>{96F70E7A-18FD-4A26-B833-797791DC761A}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>MathNet.Palladium</RootNamespace>
+ <RootNamespace>MathNet.ExpressionAlgebra</RootNamespace>
<AssemblyName>MathNet.Palladium</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
View
264 src/app/MathNet.Palladium/Settings.StyleCop
@@ -0,0 +1,264 @@
+<StyleCopSettings Version="4.3">
+ <Analyzers>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.DocumentationRules">
+ <Rules>
+ <Rule Name="ElementsMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PartialElementsMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="EnumerationItemsMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationMustContainValidXml">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementDocumentationMustHaveSummary">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PartialElementDocumentationMustHaveSummary">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementDocumentationMustHaveSummaryText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PartialElementDocumentationMustHaveSummaryText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementDocumentationMustNotHaveDefaultSummary">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementParametersMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementParameterDocumentationMustMatchElementParameters">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementParameterDocumentationMustDeclareParameterName">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementParameterDocumentationMustHaveText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementReturnValueMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementReturnValueDocumentationMustHaveText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="VoidReturnValueMustNotBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="GenericTypeParametersMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="GenericTypeParametersMustBeDocumentedPartialClass">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="GenericTypeParameterDocumentationMustMatchTypeParameters">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="GenericTypeParameterDocumentationMustDeclareParameterName">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="GenericTypeParameterDocumentationMustHaveText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PropertySummaryDocumentationMustMatchAccessors">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PropertySummaryDocumentationMustOmitSetAccessorWithRestrictedAccess">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementDocumentationMustNotBeCopiedAndPasted">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="SingleLineCommentsMustNotUseDocumentationStyleSlashes">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationTextMustNotBeEmpty">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationTextMustContainWhitespace">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationMustMeetCharacterPercentage">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationTextMustMeetMinimumCharacterLength">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ConstructorSummaryDocumentationMustBeginWithStandardText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DestructorSummaryDocumentationMustBeginWithStandardText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationHeadersMustNotContainBlankLines">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileMustHaveHeader">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderMustShowCopyright">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderMustHaveCopyrightText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderMustContainFileName">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderFileNameDocumentationMustMatchFileName">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderMustHaveValidCompanyText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.MaintainabilityRules">
+ <Rules>
+ <Rule Name="AccessModifierMustBeDeclared">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.SpacingRules">
+ <Rules>
+ <Rule Name="KeywordsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.NamingRules">
+ <Rules>
+ <Rule Name="FieldNamesMustNotBeginWithUnderscore">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FieldNamesMustNotContainUnderscore">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.OrderingRules">
+ <Rules>
+ <Rule Name="UsingDirectivesMustBePlacedWithinNamespace">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="StaticElementsMustAppearBeforeInstanceElements">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.ReadabilityRules">
+ <Rules>
+ <Rule Name="ParameterMustNotSpanMultipleLines">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PrefixLocalCallsWithThis">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ </Analyzers>
+</StyleCopSettings>
View
2 src/test/MathNet.Palladium.Test/DifferentiationTests.cs
@@ -4,7 +4,7 @@
namespace MathNet.Palladium.Test
{
- using MathNet.Palladium.ExpressionAlgebra;
+ using MathNet.ExpressionAlgebra;
[TestFixture]
public class DifferentiationTests
View
4 src/test/MathNet.Palladium.Test/ExpressionAlgebraElementaryTests.cs
@@ -1,14 +1,12 @@
using System;
using System.Collections.Generic;
-using System.Linq;
using System.Linq.Expressions;
-using System.Text;
using NUnit.Framework;
namespace MathNet.Palladium.Test
{
+ using MathNet.ExpressionAlgebra;
using MathNet.Numerics;
- using MathNet.Palladium.ExpressionAlgebra;
[TestFixture]
public class ExpressionAlgebraElementaryTests
View
5 src/test/MathNet.Palladium.Test/ExpressionAlgebraSimplifyTests.cs
@@ -1,13 +1,10 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
using System.Linq.Expressions;
-using System.Text;
using NUnit.Framework;
namespace MathNet.Palladium.Test
{
- using MathNet.Palladium.ExpressionAlgebra;
+ using MathNet.ExpressionAlgebra;
[TestFixture]
public class ExpressionAlgebraSimplifyTests

0 comments on commit f0d5867

Please sign in to comment.