1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
4 | *
|
---|
5 | * This file is part of HeuristicLab.
|
---|
6 | *
|
---|
7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | */
|
---|
20 | #endregion
|
---|
21 |
|
---|
22 | using System;
|
---|
23 | using HeuristicLab.PluginInfrastructure;
|
---|
24 | using HEAL.Attic;
|
---|
25 | using MathNet.Numerics.LinearAlgebra;
|
---|
26 | using MathNet.Numerics.LinearAlgebra.Storage;
|
---|
27 |
|
---|
28 | namespace HeuristicLab.MathNet.Numerics {
|
---|
29 | [Plugin("HeuristicLab.MathNet.Numerics", "HeuristicLab wrapper for MathNet.Numerics nuget package.", "4.9.0.$WCREV$")]
|
---|
30 | [PluginFile("HeuristicLab.MathNet.Numerics.dll", PluginFileType.Assembly)]
|
---|
31 | [PluginFile("MathNet.Numerics.dll", PluginFileType.Assembly)]
|
---|
32 | //[PluginFile("MathNet.Numerics.License.txt", PluginFileType.License)]
|
---|
33 | [PluginDependency("HeuristicLab.Attic", "1.0")]
|
---|
34 | public class Plugin : PluginBase {
|
---|
35 | public Plugin() {
|
---|
36 | }
|
---|
37 |
|
---|
38 | public override void OnLoad() {
|
---|
39 | base.OnLoad();
|
---|
40 | #region Register Vector Types in Attic
|
---|
41 | Mapper.StaticCache.RegisterType(new Guid("9BDA9658-EDBF-4BAD-B988-DCA08C500D7A"), typeof(Vector<>));
|
---|
42 |
|
---|
43 | Mapper.StaticCache.RegisterType(new Guid("4921801B-5A2F-41E4-86AD-E6B548ED2CB7"), typeof(VectorStorage<>));
|
---|
44 | Mapper.StaticCache.RegisterType(new Guid("8E57A262-299C-46B6-BDA8-DCB726C83FC0"), typeof(DenseVectorStorage<>));
|
---|
45 | Mapper.StaticCache.RegisterType(new Guid("33724125-E6A4-4E08-9EE4-9508D696E2D9"), typeof(SparseVectorStorage<>));
|
---|
46 |
|
---|
47 | Mapper.StaticCache.RegisterType(new Guid("0210EAC6-0261-4D83-A161-00A2B67CA0CC"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex.Vector));
|
---|
48 | Mapper.StaticCache.RegisterType(new Guid("87F48979-5F2A-42C9-9D84-916C37CE42C3"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex.DenseVector));
|
---|
49 | Mapper.StaticCache.RegisterType(new Guid("311C0244-103E-4E8B-A823-534158DE5257"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex.SparseVector));
|
---|
50 |
|
---|
51 | Mapper.StaticCache.RegisterType(new Guid("06608505-BB8A-41C0-B5B9-C9A5605CB6E0"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex32.Vector));
|
---|
52 | Mapper.StaticCache.RegisterType(new Guid("37C6F78F-4ABE-41AE-AF68-573450AAB0AB"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex32.DenseVector));
|
---|
53 | Mapper.StaticCache.RegisterType(new Guid("D31F4B80-3EAE-4668-A6D4-817DA0DA7E28"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex32.SparseVector));
|
---|
54 |
|
---|
55 | Mapper.StaticCache.RegisterType(new Guid("F20EE6AE-EAC6-4937-BBE7-92955D8C5936"), typeof(global::MathNet.Numerics.LinearAlgebra.Double.Vector));
|
---|
56 | Mapper.StaticCache.RegisterType(new Guid("8E63B5E1-8892-455F-97C2-31B367A21734"), typeof(global::MathNet.Numerics.LinearAlgebra.Double.DenseVector));
|
---|
57 | Mapper.StaticCache.RegisterType(new Guid("6BDA39FC-1334-4D86-9E88-277E4C33D7F1"), typeof(global::MathNet.Numerics.LinearAlgebra.Double.SparseVector));
|
---|
58 |
|
---|
59 | Mapper.StaticCache.RegisterType(new Guid("99E450D1-7F02-4ED4-922E-8EB597214DFF"), typeof(global::MathNet.Numerics.LinearAlgebra.Single.Vector));
|
---|
60 | Mapper.StaticCache.RegisterType(new Guid("A1B29D78-603D-4AEE-8D5E-3E3B3D1FC1F8"), typeof(global::MathNet.Numerics.LinearAlgebra.Single.DenseVector));
|
---|
61 | Mapper.StaticCache.RegisterType(new Guid("7775580A-AB68-4311-A75E-C4075C9A2F18"), typeof(global::MathNet.Numerics.LinearAlgebra.Single.SparseVector));
|
---|
62 | #endregion
|
---|
63 |
|
---|
64 | #region Register Matrix Types in Attic
|
---|
65 | Mapper.StaticCache.RegisterType(new Guid("360253A5-F021-4892-9AEA-A52FB6904844"), typeof(Matrix<>));
|
---|
66 |
|
---|
67 | Mapper.StaticCache.RegisterType(new Guid("4BE8AF41-C052-4C7F-897C-24178AEEA3BC"), typeof(MatrixStorage<>));
|
---|
68 | Mapper.StaticCache.RegisterType(new Guid("1B426075-E412-4648-AB97-A6927D796008"), typeof(DenseColumnMajorMatrixStorage<>));
|
---|
69 | Mapper.StaticCache.RegisterType(new Guid("7E8270CB-B7B5-4198-889F-B7A0DC302AEB"), typeof(DiagonalMatrixStorage<>));
|
---|
70 | Mapper.StaticCache.RegisterType(new Guid("F332A995-4056-4C8D-B4A6-42771306D43E"), typeof(SparseCompressedRowMatrixStorage<>));
|
---|
71 |
|
---|
72 | Mapper.StaticCache.RegisterType(new Guid("3928D44C-E393-421B-9BA6-1619F2EF77CA"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex.Matrix));
|
---|
73 | Mapper.StaticCache.RegisterType(new Guid("35A7ADF2-0F9A-4AA9-B5EC-A5F14A44ADCC"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex.DenseMatrix));
|
---|
74 | Mapper.StaticCache.RegisterType(new Guid("D3376AC9-AFB0-47F7-A69C-807FB562E896"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex.DiagonalMatrix));
|
---|
75 | Mapper.StaticCache.RegisterType(new Guid("5EBC44E4-D92F-4D0F-B740-10A5B32F5233"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex.SparseMatrix));
|
---|
76 |
|
---|
77 | Mapper.StaticCache.RegisterType(new Guid("0740483C-A512-4414-9795-0575F681DD72"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex32.Matrix));
|
---|
78 | Mapper.StaticCache.RegisterType(new Guid("8E1191CC-3305-49AD-ADAA-7CCE73DE7EC5"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex32.DenseMatrix));
|
---|
79 | Mapper.StaticCache.RegisterType(new Guid("1AB78582-551A-4368-A0A3-582D38B38A39"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex32.DiagonalMatrix));
|
---|
80 | Mapper.StaticCache.RegisterType(new Guid("EC07CD9D-BC1B-4A60-9248-1F57D2161932"), typeof(global::MathNet.Numerics.LinearAlgebra.Complex32.SparseMatrix));
|
---|
81 |
|
---|
82 | Mapper.StaticCache.RegisterType(new Guid("DDB7C3FC-3389-4E98-AEEF-6A1B08BB0319"), typeof(global::MathNet.Numerics.LinearAlgebra.Double.Matrix));
|
---|
83 | Mapper.StaticCache.RegisterType(new Guid("0F704924-2E50-476B-8C48-8F4F8C8F06F1"), typeof(global::MathNet.Numerics.LinearAlgebra.Double.DenseMatrix));
|
---|
84 | Mapper.StaticCache.RegisterType(new Guid("636898E8-03B8-4841-BC12-62A845251533"), typeof(global::MathNet.Numerics.LinearAlgebra.Double.DiagonalMatrix));
|
---|
85 | Mapper.StaticCache.RegisterType(new Guid("80129CDD-4853-4049-9A71-7939D312A134"), typeof(global::MathNet.Numerics.LinearAlgebra.Double.SparseMatrix));
|
---|
86 |
|
---|
87 | Mapper.StaticCache.RegisterType(new Guid("FEF95D66-C01F-4C1C-B154-B86489E9092B"), typeof(global::MathNet.Numerics.LinearAlgebra.Single.Matrix));
|
---|
88 | Mapper.StaticCache.RegisterType(new Guid("CBBA6D18-1AE5-48C2-BEF0-71C4107454A7"), typeof(global::MathNet.Numerics.LinearAlgebra.Single.DenseMatrix));
|
---|
89 | Mapper.StaticCache.RegisterType(new Guid("5DD5D87D-F64B-4D0F-86DE-966EA30A9F07"), typeof(global::MathNet.Numerics.LinearAlgebra.Single.DiagonalMatrix));
|
---|
90 | Mapper.StaticCache.RegisterType(new Guid("3C41DF38-CC7B-4D3C-AEB0-6106CDBFCDA1"), typeof(global::MathNet.Numerics.LinearAlgebra.Single.SparseMatrix));
|
---|
91 | #endregion
|
---|
92 | }
|
---|
93 | }
|
---|
94 | }
|
---|