BRL-CAD
bn_poly_multiply.c File Reference
#include "common.h"
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <signal.h>
#include "bu.h"
#include "vmath.h"
#include "bn.h"
Include dependency graph for bn_poly_multiply.c:

Go to the source code of this file.

Functions

void poly_init (void)
 
int check_results (fastf_t a[], fastf_t b[], int n)
 
int test_bn_poly (void)
 
int main (void)
 

Variables

struct bn_poly bn_Zero_poly = { BN_POLY_MAGIC, 0, {0.0} }
 
bn_poly_t input [3]
 
bn_poly_t output [3]
 

Function Documentation

void poly_init ( void  )

The known output values used for these tests were generated from GNU Octave, version 3.4.3

Definition at line 43 of file bn_poly_multiply.c.

References bn_Zero_poly, bn_poly::cf, and bn_poly::dgr.

Referenced by main().

int check_results ( fastf_t  a[],
fastf_t  b[],
int  n 
)

Definition at line 97 of file bn_poly_multiply.c.

Referenced by test_bn_poly().

int test_bn_poly ( void  )

Definition at line 111 of file bn_poly_multiply.c.

References bn_poly_mul(), bn_Zero_poly, bn_poly::cf, check_results(), and bn_poly::dgr.

Referenced by main().

Here is the call graph for this function:

int main ( void  )

Definition at line 132 of file bn_poly_multiply.c.

References bu_log(), poly_init(), and test_bn_poly().

Here is the call graph for this function:

Variable Documentation

struct bn_poly bn_Zero_poly = { BN_POLY_MAGIC, 0, {0.0} }

Definition at line 33 of file bn_poly_multiply.c.

Referenced by poly_init(), and test_bn_poly().

bn_poly_t input[3]

Definition at line 36 of file bn_poly_multiply.c.

bn_poly_t output[3]

Definition at line 36 of file bn_poly_multiply.c.