Пример #1
0
def tape_to_latex(tape_tag, x, y):
    """
    tape_to_latex(tape_tag,x,y)
    F:R^N -> R^M
    x is N-vector  y is M-vector
    writes the tape to a file called tape_x.tex that can be compile with Latex
    """
    assert type(tape_tag) == int
    x = numpy.ascontiguousarray(x, dtype=float)
    y = numpy.ascontiguousarray(y, dtype=float)

    return _adolc.tape_to_latex(tape_tag, x, y)
Пример #2
0
def tape_to_latex(tape_tag,x,y):
    """
    tape_to_latex(tape_tag,x,y)
    F:R^N -> R^M
    x is N-vector  y is M-vector
    writes the tape to a file called tape_x.tex that can be compile with Latex
    """
    assert type(tape_tag) == int
    x = numpy.ascontiguousarray(x, dtype=float)
    y = numpy.ascontiguousarray(y, dtype=float)

    return _adolc.tape_to_latex(tape_tag, x, y)
Пример #3
0
def tape_to_latex(tape_tag,x,y):
	"""
,	"\n\ntape_to_latex(tape_tag,x,y)
											"F:R^N -> R^M
											"x is N-vector  y is M-vector\n
											"writes the tape to a file called tape_x.tex that can be compile with Latex\n
											

	"""
	assert type(tape_tag) == int
	x = numpy.asarray(x, dtype=float)
	y = numpy.asarray(y, dtype=float)

	return _adolc.tape_to_latex(tape_tag, x, y)