All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.berkeley.nlp.math.DoubleMatrices Maven / Gradle / Ivy

Go to download

The Berkeley parser analyzes the grammatical structure of natural language using probabilistic context-free grammars (PCFGs).

The newest version!
package edu.berkeley.nlp.math;

public class DoubleMatrices {
/**
 * Returns the matrix transpose.  Assumes a non-empty rectangular matrix.
 */
	public static double[][] transpose(double[][] A) {
		double[][] B = new double[A[0].length][A.length];
		for (int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy