Clean up trailing whitespace

This commit is contained in:
Marcel Plch 2024-11-10 12:59:35 +01:00
parent 4b2db87c9e
commit afc9aec314
Signed by: dormouse
GPG key ID: 2CA77596BC4BDFFE
3 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
in vec3 colorF; in vec3 colorF;
out vec3 color; out vec3 color;
void main() { void main() {
color = colorF; color = colorF;
} }

View file

@ -43,7 +43,7 @@ neural_new(size_t input_size, size_t output_size, size_t layer_count) {
+ (layer_diff * i / ((ssize_t)layer_count-1)), + (layer_diff * i / ((ssize_t)layer_count-1)),
i < (layer_count-1) ? i < (layer_count-1) ?
(input_size + (layer_diff * (i+1) (input_size + (layer_diff * (i+1)
/ ((ssize_t)layer_count-1))) / ((ssize_t)layer_count-1)))
: 0); : 0);
} }
@ -205,7 +205,7 @@ neural_getMesh(Neural_Network *nn, ModelRegistry *mr) {
for (int j = 0; j < nn->layer_count; j++) { for (int j = 0; j < nn->layer_count; j++) {
Neural_Layer *nl = nn->layers[j]; Neural_Layer *nl = nn->layers[j];
for (int i = 0; i < nl->layer_size; i++) { for (int i = 0; i < nl->layer_size; i++) {
unsigned int brightness; unsigned int brightness;
for (int k = 0; k < nl->layer_size_next; k++) { for (int k = 0; k < nl->layer_size_next; k++) {
model = model_line((-.90) model = model_line((-.90)
+ ((GLfloat)2 * i * .90/(nl->layer_size-1)), + ((GLfloat)2 * i * .90/(nl->layer_size-1)),

View file

@ -25,7 +25,7 @@ tensor_fromVertexBuffer(float *buffer, size_t bufsize) {
mat_width = bufsize; mat_width = bufsize;
mat = tensor_new(4, mat_width); mat = tensor_new(4, mat_width);
for (int i = 0; i < bufsize; i++) { for (int i = 0; i < bufsize; i++) {
for (int j = 0; j < 4; j++) { for (int j = 0; j < 4; j++) {
mat->data[j*mat_width+i] = buffer[i*4+j]; mat->data[j*mat_width+i] = buffer[i*4+j];