MCPcopy Create free account
hub / github.com/apache/madlib / mult

Function mult

src/modules/crf/linear_crf.cpp:676–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676Eigen::VectorXd mult(Eigen::MatrixXd Mi, Eigen::VectorXd Vi, bool trans,
677 int num_label)
678{
679 int i=0,j=0,r=0,c=0;
680 Eigen::VectorXd z(num_label);
681 z.fill(0);
682 for (i = 0; i < num_label; i++ )
683 {
684 for (j=0; j< num_label; j++) {
685 r= i;
686 c=j;
687 if(trans) {
688 r= j;
689 c=i;
690 }
691 z(r)+=Mi(i,j)*Vi(c);
692 }
693 }
694 return z;
695}
696
697
698/**

Callers 1

compute_logli_gradientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected