Tabnine Logo
DMat
Code IndexAdd Tabnine to your IDE (free)

How to use
DMat
in
ch.akuhn.edu.mit.tedlab

Best Java code snippets using ch.akuhn.edu.mit.tedlab.DMat (Showing top 5 results out of 315)

origin: edu.ucla.sspace/sspace-wordsi

static DMat svdTransposeD(DMat D) {
  int r, c;
  DMat N = new DMat(D.cols, D.rows);
  for (r = 0; r < D.rows; r++)
    for (c = 0; c < D.cols; c++)
      N.value[c][r] = D.value[r][c];
  return N;
}
origin: semanticvectors/semanticvectors

static DMat svdTransposeD(DMat D) {
  int r, c;
  DMat N = new DMat(D.cols, D.rows);
  for (r = 0; r < D.rows; r++)
    for (c = 0; c < D.cols; c++)
      N.value[c][r] = D.value[r][c];
  return N;
}
origin: semanticvectors/semanticvectors

public PrincipalComponents (ObjectVector[] vectorInput) {
 this.vectorInput = vectorInput;
 this.dimension = vectorInput[0].getVector().getDimension();
 double[][] vectorArray = new double[vectorInput.length][dimension];
 for (int i = 0; i < vectorInput.length; ++i) {
  if (vectorInput[i].getVector().getClass() != RealVector.class) {
   throw new IncompatibleVectorsException(
     "Principal components class only works with Real Vectors so far!");
  }
  if (vectorInput[i].getVector().getDimension() != dimension) {
   throw new IncompatibleVectorsException("Dimensions must all be equal!");
  }
  RealVector realVector = (RealVector) vectorInput[i].getVector();
  float[] tempVec = realVector.getCoordinates().clone();
  for (int j = 0; j < dimension; ++j) {
   vectorArray[i][j] = (double) tempVec[j];
  }
 }
 this.matrix = new DMat(vectorArray.length, vectorArray[0].length);
 matrix.value = vectorArray;
 System.err.println("Created matrix ... performing svd ...");
 Svdlib svd = new Svdlib();
 System.err.println("Starting SVD using algorithm LAS2");
 svdR = svd.svdLAS2A(Svdlib.svdConvertDtoS(matrix), matrix.cols);
}
origin: semanticvectors/semanticvectors

    R = new SVDRec();
    R.S = new double[0];
    R.Ut = new DMat(0,A.rows);
    R.Vt = new DMat(0,A.cols);
    return R;
R.Ut = new DMat(R.d, A.rows);
R.S  = svd_doubleArray(R.d, true, "las2: R->s");
R.Vt = new DMat(R.d, A.cols);
origin: edu.ucla.sspace/sspace-wordsi

    R = new SVDRec();
    R.S = new double[0];
    R.Ut = new DMat(0,A.rows);
    R.Vt = new DMat(0,A.cols);
    return R;
R.Ut = new DMat(R.d, A.rows);
R.S  = svd_doubleArray(R.d, true, "las2: R->s");
R.Vt = new DMat(R.d, A.cols);
ch.akuhn.edu.mit.tedlabDMat

Most used methods

  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now