Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Linear Algebra and the C Language/a0ha

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

__NOTOC__ Install and compile this file in your working directory. /* ------------------------------------ */ /* Save as : c00g.c */ /* ------------------------------------ */ #include "v_a.h" /* ------------------------------------ */ #define RC RC6 /* ------------------------------------ */ int main(void) { /* Hankel Matrix V 1 2 3 U 4 5 6 7 */ double v[RC*C1]={ 0, 0, 0, 0, 0, 6}; double u[R1*RC]={ 6,5,4,3,2,1}; double **V = ca_A_mR(v,i_mR(RC,C1)); double **U = ca_A_mR(u,i_mR(R1,RC)); double **A = i_mR(RC,RC); clrscrn(); rHankel_mR(U,V,A); printf(" A: Lower matrix"); p_mR(A, S4,P0,C10); stop(); f_mR(U); f_mR(V); f_mR(A); return 0; } /* ------------------------------------ */ /* ------------------------------------ */ Screen output example: A: Lower matrix +0 +0 +0 +0 +0 +6 +0 +0 +0 +0 +6 +5 +0 +0 +0 +6 +5 +4 +0 +0 +6 +5 +4 +3 +0 +6 +5 +4 +3 +2 +6 +5 +4 +3 +2 +1 Press return to continue.