Change MuJoCo engine source code function-spacing convention from 3 blank lines to 2
PiperOrigin-RevId: 813754244 Change-Id: I6836e41c3b021cb727e922c25c60f629b9814c93
This commit is contained in:
committed by
Copybara-Service
parent
c439628f82
commit
edbdb5195c
@@ -119,7 +119,6 @@ static void printArray2dInt(const char* str, int nr, int nc, const int* data, FI
|
||||
}
|
||||
|
||||
|
||||
|
||||
// print sparse matrix
|
||||
static void printSparse(const char* str, const mjtNum* mat, int nr,
|
||||
const int* rownnz, const int* rowadr,
|
||||
@@ -193,7 +192,6 @@ static void printBlockArray(const char* str, const mjtNum* data, int nr, int nc,
|
||||
}
|
||||
|
||||
|
||||
|
||||
// print sparse inertia-like matrix
|
||||
static void printInertia(const char* str, const mjtNum* mat, const mjModel* m,
|
||||
FILE* fp, const char* float_format) {
|
||||
@@ -230,7 +228,6 @@ static void printInertia(const char* str, const mjtNum* mat, const mjModel* m,
|
||||
}
|
||||
|
||||
|
||||
|
||||
// print sparse matrix structure
|
||||
void mj_printSparsity(const char* str, int nr, int nc, const int* rowadr, const int* diag,
|
||||
const int* rownnz, const int* rowsuper, const int* colind, FILE* fp) {
|
||||
@@ -268,7 +265,6 @@ void mj_printSparsity(const char* str, int nr, int nc, const int* rowadr, const
|
||||
}
|
||||
|
||||
|
||||
|
||||
// print block-diagonal sparse matrix structure
|
||||
void mj_printBlockSparsity(const char* str, int nr, int nc, int nisland,
|
||||
const int* island_block_ncols,
|
||||
@@ -328,7 +324,6 @@ void mj_printBlockSparsity(const char* str, int nr, int nc, int nisland,
|
||||
}
|
||||
|
||||
|
||||
|
||||
// print vector
|
||||
static void printVector(const char* str, const mjtNum* data, int n, FILE* fp,
|
||||
const char* float_format) {
|
||||
@@ -347,7 +342,6 @@ static void printVector(const char* str, const mjtNum* data, int n, FILE* fp,
|
||||
}
|
||||
|
||||
|
||||
|
||||
// print human readable memory size
|
||||
static const char* memorySize(size_t nbytes) {
|
||||
static mjTHREADLOCAL char message[20];
|
||||
@@ -367,7 +361,6 @@ static const char* memorySize(size_t nbytes) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
// return memory footprint of all significant mesh-related arrays
|
||||
static size_t sizeMesh(const mjModel* m) {
|
||||
size_t nbytes = 0;
|
||||
@@ -382,7 +375,6 @@ static size_t sizeMesh(const mjModel* m) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
// return memory footprint of all significant skin-related arrays
|
||||
static size_t sizeSkin(const mjModel* m) {
|
||||
size_t nbytes = 0;
|
||||
@@ -400,7 +392,6 @@ static size_t sizeSkin(const mjModel* m) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
// return whether float_format is a valid format string for a single float
|
||||
static bool validateFloatFormat(const char* float_format) {
|
||||
// check for nullptr;
|
||||
|
||||
Reference in New Issue
Block a user