Download data/DWSIM.Math.DotNumerics/FortranLibrary/CommonBlock.cs from introvoyz041/Dwsim: direct link, hf CLI and curl.
- Browser
- Download file 1.72 kB
-
https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.Math.DotNumerics/FortranLibrary/CommonBlock.cs
- Command line
-
hf download hf://datasets/introvoyz041/Dwsim/data/DWSIM.Math.DotNumerics/FortranLibrary/CommonBlock.cs
-
curl -L -o CommonBlock.cs https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.Math.DotNumerics/FortranLibrary/CommonBlock.cs
1.72 kB
| | |
| //Copyright © 2009 Jose Antonio De Santiago-Castillo | |
| //E-mail:JAntonioDeSantiago@gmail.com | |
| //Web: www.DotNumerics.com | |
| // | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| namespace DotNumerics.FortranLibrary | |
| { | |
| public class CommonBlock | |
| { | |
| //private string MeName = ""; | |
| private Odouble[] MeDoubleData; | |
| private Oint[] MeIntData; | |
| public CommonBlock(int DimensionDouble, int DimensionInt, int DimensionSingle, int DimensionComplex) | |
| { | |
| //this.MeName = TheName; | |
| if (DimensionDouble > 0) | |
| { | |
| this.MeDoubleData = new Odouble[DimensionDouble]; | |
| for (int i = 0; i < DimensionDouble; i++) | |
| { | |
| MeDoubleData[i] = new Odouble(); | |
| } | |
| } | |
| if (DimensionInt > 0) | |
| { | |
| this.MeIntData = new Oint[DimensionInt]; | |
| for (int i = 0; i < DimensionInt; i++) | |
| { | |
| MeIntData[i] = new Oint(); | |
| } | |
| } | |
| } | |
| public Odouble[] doubleData | |
| { | |
| get { return this.MeDoubleData; } | |
| set { this.MeDoubleData = value; } | |
| } | |
| public Oint[] intData | |
| { | |
| get { return this.MeIntData; } | |
| set { this.MeIntData = value; } | |
| } | |
| } | |
| } | |