Esempio n. 1
0
 /// <summary>
 /// Human-readable form of the unitType
 /// </summary>
 /// <returns>A string representation of the unitType</returns>
 public string getUnitType(DerivedUnits units)
 {
     try { return(UnitType[units._unitType]); }
     catch { return("Unknown unit"); }
 }
Esempio n. 2
0
 public Scalar(Scalar scalar)
 {
     _value = scalar.value;
     _units = scalar.units;
 }
Esempio n. 3
0
 public DerivedUnits(DerivedUnits derivedUnits)
 {
     new DerivedUnits(derivedUnits._unitType);
 }
Esempio n. 4
0
 public Scalar(double value, DerivedUnits units)
 {
     _value = value; _units = units;
 }
Esempio n. 5
0
 public Tensor(List <List <double> > values)
 {
     _values = values;
     _units  = DerivedUnits.Unitless;
 }
Esempio n. 6
0
 public Tensor(List <List <double> > values, DerivedUnits units)
 {
     _values = values;
     _units  = units;
 }
Esempio n. 7
0
 public Tensor(Tensor X)
 {
     _values = X.values;
     _units  = X.units;
 }
Esempio n. 8
0
 public Vector(List <double> values, DerivedUnits units)
 {
     _values = values;
     _units  = units;
 }