Package rst.math¶
This package contains data types representing mathematical concepts.
Examples include vectors over different bodies and precisions
(e.g. Vec2DInt
, Vec2DFloat
) and similar
matrices (e.g. MatrixDouble
).
Messages¶
Message MatrixDouble¶
-
class
rst.math.
MatrixDouble
¶ A matrix of m x n double entries.
Code author: Michael Goetting <mgoettin@techfak.uni-bielefeld.de>
-
size
¶ Type: rst.math.MatrixDouble.Size
The dimensions of the matrix.
-
data
¶ Type: rst.math.MatrixDouble.Data
The entries of the matrix
-
message MatrixDouble {
/**
* Dimensions of the matrix.
*/
message Size {
/**
* Number of rows of the matrix.
*/
required uint32 m = 1;
/**
* Number of columns of the matrix.
*/
required uint32 n = 2;
}
/**
* Data of the matrix.
*
* Entries are stored in rowwise.
*/
message Data {
/**
* A flat sequence of the entries of the matrix.
*/
repeated double value = 1 [packed=true];
}
/**
* The dimensions of the matrix.
*/
required Size size = 1;
/**
* The entries of the matrix
*/
required Data data = 2;
}
Message Size¶
message Size {
/**
* Number of rows of the matrix.
*/
required uint32 m = 1;
/**
* Number of columns of the matrix.
*/
required uint32 n = 2;
}
Message Data¶
message Data {
/**
* A flat sequence of the entries of the matrix.
*/
repeated double value = 1 [packed=true];
}
Message Vec2DFloat¶
-
class
rst.math.
Vec2DFloat
¶ A 2D vector with float entries.
Code author: Michael Goetting <mgoettin@techfak.uni-bielefeld.de>
-
x
¶ Type: FLOAT32
The X component of the vector.
-
y
¶ Type: FLOAT32
The Y component of the vector.
-
message Vec2DFloat {
/**
* The X component of the vector.
*/
required float x = 1 [default = 0];
/**
* The Y component of the vector.
*/
required float y = 2 [default = 0];
}
Message Vec3DInt¶
-
class
rst.math.
Vec3DInt
¶ A 3D vector with integer entries.
Code author: Michael Goetting <mgoettin@techfak.uni-bielefeld.de>
-
x
¶ Type: INT32
The X component of the vector.
-
y
¶ Type: INT32
The Y component of the vector.
-
z
¶ Type: INT32
The Z component of the vector.
-
message Vec3DInt {
/**
* The X component of the vector.
*/
required int32 x = 1 [default = 0];
/**
* The Y component of the vector.
*/
required int32 y = 2 [default = 0];
/**
* The Z component of the vector.
*/
required int32 z = 3 [default = 0];
}
Message VectorDouble¶
-
class
rst.math.
VectorDouble
¶ A vector of double entries.
Use fixed-dimensions data-types whenever possible.
Code author: Arne Nordmann <anordman@cor-lab.uni-bielefeld.de>
-
data
¶ Type: array of FLOAT64
Vector elements.
-
message VectorDouble {
/**
* Vector elements.
*/
repeated double data = 2 [packed=true];
}
Message Vec3DDouble¶
-
class
rst.math.
Vec3DDouble
¶ A 3D vector with double entries.
Code author: Michael Goetting <mgoettin@techfak.uni-bielefeld.de>
-
x
¶ Type: FLOAT64
The X component of the vector.
-
y
¶ Type: FLOAT64
The Y component of the vector.
-
z
¶ Type: FLOAT64
The Z component of the vector.
-
message Vec3DDouble {
/**
* The X component of the vector.
*/
required double x = 1 [default = 0];
/**
* The Y component of the vector.
*/
required double y = 2 [default = 0];
/**
* The Z component of the vector.
*/
required double z = 3 [default = 0];
}
Message Vec2DInt¶
-
class
rst.math.
Vec2DInt
¶ A 2D vector with integer entries.
Code author: Michael Goetting <mgoettin@techfak.uni-bielefeld.de>
-
x
¶ Type: INT32
The X component of the vector.
-
y
¶ Type: INT32
The Y component of the vector.
-
message Vec2DInt {
/**
* The X component of the vector.
*/
required int32 x = 1 [default = 0];
/**
* The Y component of the vector.
*/
required int32 y = 2 [default = 0];
}
Message Vec3DFloat¶
-
class
rst.math.
Vec3DFloat
¶ A 3D vector with float entries.
Code author: Michael Goetting <mgoettin@techfak.uni-bielefeld.de>
-
x
¶ Type: FLOAT32
The X-component of the vector.
-
y
¶ Type: FLOAT32
The Y-component of the vector.
-
z
¶ Type: FLOAT32
The Z-component of the vector.
-
message Vec3DFloat {
/**
* The X-component of the vector.
*/
required float x = 1 [default = 0];
/**
* The Y-component of the vector.
*/
required float y = 2 [default = 0];
/**
* The Z-component of the vector.
*/
required float z = 3 [default = 0];
}